0
0
Fork 0

対応言語を追加

This commit is contained in:
Xeltica 2023-03-29 02:52:03 +09:00
parent 26d178769a
commit 98f7177621
2 changed files with 10 additions and 0 deletions

View file

@ -2,6 +2,9 @@ import jaJP from './ja-JP.json';
import enUS from './en-US.json'; import enUS from './en-US.json';
import koKR from './ko-KR.json'; import koKR from './ko-KR.json';
import jaCR from './ja-cr.json'; import jaCR from './ja-cr.json';
import itIT from './it-IT.json';
import zhCN from './zh-CN.json';
import zhTW from './zh-TW.json';
import deepmerge from 'deepmerge'; import deepmerge from 'deepmerge';
@ -17,6 +20,9 @@ export const resources = {
'ja_JP': { translation: jaJP }, 'ja_JP': { translation: jaJP },
'en_US': { translation: _enUS }, 'en_US': { translation: _enUS },
'ko_KR': { translation: merge(_enUS, koKR) }, 'ko_KR': { translation: merge(_enUS, koKR) },
'it_IT': { translation: merge(_enUS, itIT) },
'zh_CN': { translation: merge(_enUS, zhCN) },
'zh_TW': { translation: merge(_enUS, zhTW) },
'ja_CR': { translation: merge(jaJP, jaCR) }, 'ja_CR': { translation: merge(jaJP, jaCR) },
}; };
@ -24,6 +30,9 @@ export const languageName = {
'ja_JP': '日本語', 'ja_JP': '日本語',
'en_US': 'English', 'en_US': 'English',
'ko_KR': '한국어', 'ko_KR': '한국어',
'it_IT': 'Italiano',
'zh_CN': '简体中文',
'zh_TW': '繁體中文',
'ja_CR': '怪レい日本语', 'ja_CR': '怪レい日本语',
} as const; } as const;

View file

@ -1,4 +1,5 @@
{ {
"$languageName": "日本語",
"title": "Misskey Tools", "title": "Misskey Tools",
"description1": "Misskeyをもっと効果的に。様々な機能を持ったオールインワンツール。", "description1": "Misskeyをもっと効果的に。様々な機能を持ったオールインワンツール。",
"description2": "お使いのインスタンスURLを入力して、今すぐMisskey Toolsを使おう", "description2": "お使いのインスタンスURLを入力して、今すぐMisskey Toolsを使おう",