You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -4,15 +4,15 @@
4
4
For translations, the target language of this site is English, so you should base your translations off of that.
5
5
6
6
under [/src/Assets/L10N](/src/Assets/L10N) there are JSON files for the existing supported languages.
7
-
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-jp.json`)
7
+
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`)
8
8
9
9
To have the language work on the site, go to [main.ts](/src/main.ts#L29) and add a new line.
10
10
The line should look like this (using Japanese as an example):
For each missing/empty translation string, there will be a warning in the console.
17
17
18
-
After verifying that the translations show correctly on the site, you can add yourself to [the credits](/src/App.svelte#L80) and then make a pull request to submit the translation.
18
+
After verifying that the translations show correctly on the site, you can add yourself to [the credits](/src/App.svelte#L80) and then make a pull request to submit the translation.
0 commit comments