diff --git a/.gitignore b/.gitignore index 326db6fa5..53808240b 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,4 @@ npm-debug.log run.bat api-docs.json package-lock.json +yarn.lock diff --git a/README.md b/README.md index b18be325f..a44c7e16e 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ ultimately sophisticated new type of mini-blog based SNS. * Real time contents * ActivityPub compatible -and more! You can touch with your own eyes at https://misskey.xyz/. +and more! You can touch with your own eyes at [misskey.xyz](https://misskey.xyz). :package: Create your instance ---------------------------------------------------------------- @@ -36,7 +36,9 @@ please see [Setup and installation guide](./docs/setup.en.md). ---------------------------------------------------------------- **[PR](https://github.com/syuilo/misskey/pulls)s welcome!** -If you want to translate Misskey, please see [Translation guide](./docs/translate.en.md). +If you want to... +* i18n ... please see [Translation guide](./docs/translate.en.md). +* l10n ... please visit https://crowdin.com/project/misskey :heart: Backers & Sponsors ---------------------------------------------------------------- diff --git a/crowdin.yml b/crowdin.yml new file mode 100644 index 000000000..3f8dfdeca --- /dev/null +++ b/crowdin.yml @@ -0,0 +1,3 @@ +files: + - source: /locales/ja.yml + translation: /locales/%two_letters_code%.yml diff --git a/locales/en.yml b/locales/en.yml index 04f725e64..237d58201 100644 --- a/locales/en.yml +++ b/locales/en.yml @@ -19,7 +19,7 @@ common: wednesday: "W" thursday: "T" friday: "F" - saturday: "土" + saturday: "S" reactions: like: "Like" love: "Love" diff --git a/locales/fr.yml b/locales/fr.yml index 239c5303e..0e7c3820d 100644 --- a/locales/fr.yml +++ b/locales/fr.yml @@ -19,7 +19,7 @@ common: wednesday: "M" thursday: "J" friday: "V" - saturday: "土" + saturday: "S" reactions: like: "Aime" love: "Adore" diff --git a/locales/index.ts b/locales/index.ts index 926844766..89d18190f 100644 --- a/locales/index.ts +++ b/locales/index.ts @@ -14,7 +14,7 @@ const langs = { 'en': loadLang('en'), 'fr': loadLang('fr'), 'ja': native, - 'pl': loadLang('pl') + 'pl': loadLang('pl') }; Object.entries(langs).map(([, locale]) => { diff --git a/locales/ja.yml b/locales/ja.yml index e13348c40..d8e15fb3c 100644 --- a/locales/ja.yml +++ b/locales/ja.yml @@ -20,7 +20,7 @@ common: wednesday: "水" thursday: "木" friday: "金" - satruday: "土" + saturday: "土" reactions: like: "いいね" @@ -366,6 +366,12 @@ desktop/views/components/settings.profile.vue: birthday: "誕生日" save: "保存" +desktop/views/components/timeline.vue: + home: "ホーム" + local: "ローカル" + global: "グローバル" + list: "リスト" + desktop/views/components/ui.header.account.vue: profile: "プロフィール" drive: "ドライブ" diff --git a/locales/pl.yml b/locales/pl.yml index 3eef28bc4..e0f4b240b 100644 --- a/locales/pl.yml +++ b/locales/pl.yml @@ -19,7 +19,7 @@ common: wednesday: "Ś" thursday: "C" friday: "P" - saturday: "土" + saturday: "S" reactions: like: "Lubię" love: "Kocham" diff --git a/src/build/i18n.ts b/src/build/i18n.ts index 6c0f633ad..addc35ce5 100644 --- a/src/build/i18n.ts +++ b/src/build/i18n.ts @@ -7,7 +7,7 @@ import locale from '../../locales'; export default class Replacer { private lang: string; - public pattern = /%i18n:([a-z0-9_\-@\.\!]+?)%/g; + public pattern = /%i18n:([a-z0-9_\-\.\/\|\!]+?)%/g; constructor(lang: string) { this.lang = lang; @@ -53,23 +53,20 @@ export default class Replacer { } } - public replacement(ctx, match, key) { - const client = '/src/client/app/'; - let name = null; + public replacement(match, key) { + let path = null; const shouldEscape = key[0] == '!'; if (shouldEscape) { key = key.substr(1); } - if (key[0] == '@') { - name = ctx.src.substr(ctx.src.indexOf(client) + client.length); - key = key.substr(1); + if (key.indexOf('|') != -1) { + path = key.split('|')[0]; + key = key.split('|')[1]; } - if (ctx && ctx.lang) this.lang = ctx.lang; - - const txt = this.get(name, key); + const txt = this.get(path, key); return shouldEscape ? txt.replace(/'/g, '\\x27').replace(/"/g, '\\x22') diff --git a/src/client/app/desktop/views/components/calendar.vue b/src/client/app/desktop/views/components/calendar.vue index 1d8cc4f3a..757eefac7 100644 --- a/src/client/app/desktop/views/components/calendar.vue +++ b/src/client/app/desktop/views/components/calendar.vue @@ -64,7 +64,7 @@ export default Vue.extend({ '%i18n:!common.weekday-short.wednesday%', '%i18n:!common.weekday-short.thursday%', '%i18n:!common.weekday-short.friday%', - '%i18n:!common.weekday-short.satruday%' + '%i18n:!common.weekday-short.saturday%' ] }; }, diff --git a/src/client/app/desktop/views/components/timeline.vue b/src/client/app/desktop/views/components/timeline.vue index 855d03258..a776e40a2 100644 --- a/src/client/app/desktop/views/components/timeline.vue +++ b/src/client/app/desktop/views/components/timeline.vue @@ -1,11 +1,11 @@