Skip to content

Commit 8dd0ead

Browse files
would actually be ja since japanese lang code in browser is ja
1 parent 7fa84af commit 8dd0ead

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

CONTRIBUTING.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
For translations, the target language of this site is English, so you should base your translations off of that.
55

66
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`)
88

99
To have the language work on the site, go to [main.ts](/src/main.ts#L29) and add a new line.
1010
The line should look like this (using Japanese as an example):
11-
```register('ja-JP', () => import('./Assets/L10N/ja-jp.json'));```
11+
```register('ja', () => import('./Assets/L10N/ja.json'));```
1212

1313
Which boils down to:
1414
```register('locale-code', () => import('./Assets/L10N/locale-code.json'));```
1515

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

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

Comments
 (0)