-
Does anyone have already made any experiences regarding String catalog? Do you recommend in the long run to just skip Swiftgen for enum L10n generation and let Xcode automatically extract Strings to the new string catalog? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
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.
|
Beta Was this translation helpful? Give feedback.
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.