Skip to content

Add multi-language support to the start screen and help-modal#305

Merged
evanpelle merged 7 commits into
openfrontio:mainfrom
Aotumuri:multi-language-support
Mar 21, 2025
Merged

Add multi-language support to the start screen and help-modal#305
evanpelle merged 7 commits into
openfrontio:mainfrom
Aotumuri:multi-language-support

Conversation

@Aotumuri

Copy link
Copy Markdown
Member

This pull request adds multi-language support to the start screen.
Languages are managed via JSON files, making it easy to add new languages in the future.

I added a basic language selection button for switching between languages.
However, I believe it would benefit from a better design — my design skills are limited, so I apologize in advance.

Looking forward to your feedback and possible design improvements.

@Aotumuri Aotumuri changed the title Add multi-language support to the start screen Add multi-language support to the start screen and help-modal Mar 21, 2025
@Aotumuri

Copy link
Copy Markdown
Member Author

This screenshot shows how the interface behaves when the language is set to Japanese.
スクリーンショット 2025-03-21 15 49 46
スクリーンショット 2025-03-21 15 50 29

This screenshot makes it clear that the language switch button needs visual improvement.
I’m not confident in my ability to improve this button’s design, so any suggestions would be greatly appreciated!
スクリーンショット 2025-03-21 15 50 43

@Aotumuri

Copy link
Copy Markdown
Member Author

Here’s the current progress on the multilingual support work.
I’d appreciate it if you could let me know whether it’s okay to move forward with it as is.

  • start screen (en -> ja)
  • help-modal (en -> ja)
  • Join game
  • single-player-modal
  • host-lobby-modal
  • game
    etc.

If anyone is willing to help with translations into languages other than Japanese, it would be greatly appreciated!

@Aotumuri

Copy link
Copy Markdown
Member Author

As I mentioned on Discord, I’d like to leave a note here as well.
The goal of this pull request is to implement a system that allows easy application of translations—not to translate all the text right now.
Ideally, I’d love to help translate the game and make it more accessible to a wider audience.
That’s why I believe even partial translations (even if not everything is fully localized) are still meaningful and valuable at this stage.

@evanpelle evanpelle left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

thanks!

@evanpelle evanpelle merged commit c4614fe into openfrontio:main Mar 21, 2025
evanpelle pushed a commit that referenced this pull request Mar 25, 2025
This PR adds full translation support for all out-of-game UI elements,
including the start screen, public/private lobby modals, and other
pre-game interfaces.

All static text has been externalized to en.json and ja.json for future
language support.
If you find any spots that are not yet translated (missing from the
JSON), please let me know.
Thanks a lot!

This is a follow-up to PR
[#305](#305).

---------

Co-authored-by: Cldprv <dubois.cnm@tutanota.com>
Co-authored-by: jacks0n <rosty.west89@gmail.com>
@Aotumuri Aotumuri linked an issue May 27, 2025 that may be closed by this pull request
Closed
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.

MLS

2 participants