Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/platforms/apple/guides/ios/size-analysis/insights.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -234,11 +234,11 @@ Update the Info.plist alternate icon entry to point at the new `.heic` file.

#### Option 1: Keep the format lean

- 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.
- 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. Ensure STRINGS_FILE_OUTPUT_ENCODING is set to bplist to get an efficient encoding that automatically strips whitespace and comments.

#### Option 2: Strip comments automatically

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:
If 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:

```text
/* Title for the expired code alert. */
Expand Down
Loading