Skip to content

Commit 0fe0707

Browse files
committed
update instructions for string minification
1 parent a7a1e87 commit 0fe0707

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/platforms/apple/guides/ios/size-analysis/insights.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,11 +234,11 @@ Update the Info.plist alternate icon entry to point at the new `.heic` file.
234234

235235
#### Option 1: Keep the format lean
236236

237-
- Encode localized strings as plain text (`"key" = "value";`), not binary plists. Set **Strings File Output Encoding** (`STRINGS_FILE_OUTPUT_ENCODING`) to **UTF-8** in Xcode.
237+
- Use the newer [String Catalog](https://developer.apple.com/documentation/xcode/localizing-and-varying-text-with-a-string-catalog) to store strings in a more efficient format.
238238

239239
#### Option 2: Strip comments automatically
240240

241-
String files can have comments that ship with the bundle. They help during translation but take space in production. A typical comment may look like:
241+
If you're strings are encoded as text, these files can have extra comments and whitespace that ship with the bundle. They help during translation but take space in production. A typical comment may look like:
242242

243243
```text
244244
/* Title for the expired code alert. */

0 commit comments

Comments
 (0)