Skip to content

Conversation

DesignDeveloperr
Copy link

This PR refactors the existing configuration to use translation keys instead of hardcoded text values. It introduces full support for internationalization (i18n), enabling switching between English and Russian translations.

Changes include:

  • Added translation keys for all user-facing text.
  • Created separate locale files for English (en_us.json) and Russian (ru_ru.json).
  • Updated components/configuration to use i18n functions.

This update improves maintainability and prepares the app for supporting additional languages in the future.

@htmlcsjs
Copy link
Member

How were the translation keys generated or was it all done by hand? if you used a tool do you know if there is a way you can influence what the keys are named? (idealy gregtech_modern.ev__extreme_voltage.quest1.description would become gcp.quest.ev.quest1.description)

@KohKaiSern KohKaiSern mentioned this pull request Jul 22, 2025
KohKaiSern added a commit to KohKaiSern/GregTech-Modern-Community-Pack that referenced this pull request Jul 26, 2025
@KohKaiSern KohKaiSern mentioned this pull request Jul 26, 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.

2 participants