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

Support for Strings Catalogs (Xcode 15) #1421

Conversation

nicolasbosi95
Copy link
Contributor

@nicolasbosi95 nicolasbosi95 commented Dec 4, 2023

Xcode 15 introduced String Catalogs (.xcstrings files), which intend to replace the now legacy .strings and stringsdict files.

These changes add support to strings catalogs in the following ways:

  • String catalogs are added in the Resources build phase.
  • It is specified that the content type of string catalogs is text.json.xcstring.
  • Locales detected in a string catalog are treated as knownRegions of the project. This is because string catalogs do not reside in dedicated per-locale .lproj directories, so detecting knownRegions exclusively based on existing .lproj directories is no longer reliable.

@nicolasbosi95 nicolasbosi95 marked this pull request as draft December 4, 2023 04:01
@nicolasbosi95 nicolasbosi95 marked this pull request as ready for review December 5, 2023 00:10
@@ -163,6 +163,7 @@ targets:
resourceTags:
- tag1
- tag2
- String Catalogs/Localizable.xcstrings

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems not following the naming pattern.

Copy link

@MojtabaHs MojtabaHs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution.
I'm suggesting to add more documentation about this change and also, review the naming pattern for the arguments.

Copy link
Owner

@yonaskolb yonaskolb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fantastic, thank you @nicolasbosi95!

@yonaskolb yonaskolb merged commit 2881fcc into yonaskolb:master Feb 14, 2024
2 checks 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.

None yet

3 participants