Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Full String Catalog support #33

Merged

Conversation

stelabouras
Copy link
Collaborator

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 as
an 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

  • Bumps CLI version to 2.1.6.
  • Updates the CHANGELOG.

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

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 as
an 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.
* Bumps CLI version to 2.1.6.
* Updates the CHANGELOG.
@stelabouras stelabouras requested a review from n1k0sv May 29, 2024 08:44
@n1k0sv n1k0sv merged commit 568f9eb into transifex:master May 29, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants