mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-23 12:39:59 +01:00
1.6 KiB
1.6 KiB
Misskey's Translation - English version
How to add a new language?
Please copy a language file to /locales and rename it to the name of the language you want to add and edit.
If you find an untranslated part on Misskey:
-
Please look for untranslated parts from Misskey source code.
- For instance, if you find an untranslated part in:
src/client/app/mobile/views/pages/home.vue
.
- For instance, if you find an untranslated part in:
-
Replace the untranslated portion with a character string of the form
%i18n:@foo%
.- In fact,
foo
should be a word that is appropriate for the situation and is easy to understand in English. - For example, if the untranslated portion is the text「タイムライン」you must write:
%i18n:@timeline%
.
- In fact,
-
Open each language file in /locales, check whether the file name (path) found in step 1 exists, if not, create it.
- Do not put
src/client/app/
. - For example, in this case we want to modify untranslated parts of
src/client/app/mobile/views/pages/home.vue
, so the key ismobile/views/pages/home.vue
.
- Do not put
-
Add the translated text property using the
foo
key below the path that you found or created in step 2. Beside, please enter in quotation marks the value of your translation in each language file.- For example, in this case we add timeline:
timeline: "Timeline"
tolocales/en.yml
, andtimeline: "タイムライン"
tolocales/ja.yml
.
- For example, in this case we add timeline:
-
It's done!
For more details, please refer to this commit.