Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Full String Catalog support
With the introduction of the String Catalogs file format in Xcode 15,
developers have now the option to create localizations that vary by
device and/or by plural. On top of that, multiple tokens can be added in
a localized phrase (also known as substitutions) that can also support
the aforementioned variations.
In order to support all those new formats as well as the old
substitution rules found in the Strings Dictionary format
(
.stringsdict
), the advanced rules from the CLI tool are formatted asan intermediate XML structure and pushed to CDS.
This commit adds this functionality so that complex variation rules can
be supported and displayed in the Transifex web interface.
More unit tests have been added to test those cases as well as edge-case
scenarios and existing unit tests have been improved.
Bump version to 2.1.6
Reference
The document below outlines how the implemented logic works both in the SDK (version 2.0.2) and in this update of the Transifex CLI tool (version 2.1.6): Processing device variations and substitutions.pdf