Skip to content

kebufu/Team-Lodestone.github.io

 
 

Repository files navigation

Contributing

Translating

Note

For each missing/empty translation string, there will be a warning in the console.

For translations, the target language of this site is English, so you should base your translations off of that.

under /src/Assets/L10N there are JSON files for the existing supported languages.
For adding your own, copy the en-us.json file and rename it with the correct locale code for the targeted language. (e.g Japanese would be ja.json)

To have the language work on the site, add the language translation to the JSON file, then go to main.ts and add a new line.
The line should look like this (using Japanese as an example): addMessages('ja', await import('./L10N/ja.json') as never);

Which boils down to: addMessages('language-code', await import('./L10N/language-code.json') as never);

To find a list of Language Codes using Firefox, go to about:preferences, search language, and choose Choose your preferred language for displaying pages, then find your language and look at the code (in the square brackets)

You can also find the language code of the currently used Navigator language by opening devtools and typing console.log(navigator.language);.

Important

There are also separate translations for the UI Library that is not included in this project.
It is required that you also translate them.

After verifying that the translations show correctly, and following the guidelines, you can add yourself to the credits and then make a pull request to submit the translation.

Guidelines

  1. Do not translate "Project Lodestone"
  2. Do not translate the Edition names unless an edition had official translations that clearly show how it's meant to be translated.
  3. Do not translate words found within squiggly brackets ({}), these are used for formatting.
  4. Do not translate the language names.

About

The official website for Project Lodestone!

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • CSS 88.0%
  • Svelte 8.7%
  • TypeScript 1.5%
  • HTML 1.5%
  • JavaScript 0.3%