Skip to content

Conversation

@DaleStan
Copy link
Collaborator

@DaleStan DaleStan commented May 5, 2025

Part 2 of 2 for internationalizing Yafc. This extracts all translatable strings into yafc.cfg, and uses the same translation system that Factorio uses.
It also updates the Crowdin integration in a way that worked for me in a test project.

Code is generated based on the English files, to help prevent using undeclared translation keys or substituting the wrong number of parameters.

@DaleStan DaleStan requested a review from shpaass as a code owner May 5, 2025 20:59
@DaleStan
Copy link
Collaborator Author

DaleStan commented May 5, 2025

To make the Crowdin action work on the Github side, this repo will need the three secrets mentioned in crowdin-translation-action.yml.

When I was testing on the Crowdin side, the languages that use locale strings (e.g. zh-TW) needed a language mapping to change their two_letters_code to the locale string instead.

@shpaass
Copy link
Owner

shpaass commented May 5, 2025

Thank you for the feature! That's a lot of work. I'll review it this week.
All three security tokens are set up. Two entered manually, and the GITHUB_TOKEN is created automatically, from what the article says.

@DaleStan DaleStan force-pushed the internationalization branch from 0cd4b27 to eae2bae Compare May 5, 2025 22:15
@shpaass shpaass merged commit 6cf625d into shpaass:master May 6, 2025
1 check passed
@DaleStan DaleStan deleted the internationalization branch May 12, 2025 06:12
@shpaass shpaass changed the title Internationalization part 2 Internationalization (i18n) part 2 Oct 15, 2025
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.

3 participants