Skip to content

XCode 15 Strings Catalog #1071

Answered by neilkachu
Kondamon asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,

I have been making some progress on this as I already go from strings>enum and wanted to move all strings to string catalog as I have 70 targets and it would make spotting completeness better.

As xcstrings files are json Ive made a simple template to convert json>strings then the run standard strings> enum in the yaml file

The only issue I found was as the available methods for the json parser seems to treat strings with /n in them as paragraphs (unlike the .translation property on the strings parser) Ive had to pre-convert all these to {newline} and process them back later.

This is basically it, Im only interested in the en localisation as these are always complete.


{% if files %}
{…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Kondamon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants