Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Site Title and Tagline internationalization #2

Open
Meta502 opened this issue Aug 27, 2022 · 1 comment
Open

Site Title and Tagline internationalization #2

Meta502 opened this issue Aug 27, 2022 · 1 comment

Comments

@Meta502
Copy link
Collaborator

Meta502 commented Aug 27, 2022

Currently an open issue on the Docusaurus project repo facebook/docusaurus#4542

An alternative might be to use the given Translate component, but need to look into it more

@addianto
Copy link
Member

Cool. Thanks for letting us know @Meta502. I think we could follow your proposed approach by using <Translate> component. It should be pretty straightforward.

Instead of passing title and tagLine that read from the docusaurus.config.json, both values can be written as a hardcoded string that wrapped in <Translate> component. Then, generate the locale-specific files using yarn run write-translations. A JSON file should be generated that contains the title and tagLine for both English and Indonesian.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants