Skip to content

Commit

Permalink
feat(l10n): Japanese translation (PR #1034)
Browse files Browse the repository at this point in the history
  • Loading branch information
peaceroad authored Jun 11, 2020
1 parent 5c7072e commit 8f321e1
Show file tree
Hide file tree
Showing 8 changed files with 349 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/common/services/translator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,14 @@ import * as deCatalog from "readium-desktop/resources/locales/de.json";
import * as enCatalog from "readium-desktop/resources/locales/en.json";
import * as esCatalog from "readium-desktop/resources/locales/es.json";
import * as frCatalog from "readium-desktop/resources/locales/fr.json";
import * as jaCatalog from "readium-desktop/resources/locales/ja.json";
import * as nlCatalog from "readium-desktop/resources/locales/nl.json";

import * as deLang from "readium-desktop/resources/locale-names/deLang.json";
import * as enLang from "readium-desktop/resources/locale-names/enLang.json";
import * as esLang from "readium-desktop/resources/locale-names/esLang.json";
import * as frLang from "readium-desktop/resources/locale-names/frLang.json";
import * as jaLang from "readium-desktop/resources/locale-names/jaLang.json";
import * as nlLang from "readium-desktop/resources/locale-names/nlLang.json";
import { TFunction } from "readium-desktop/typings/en.translation";

Expand Down Expand Up @@ -90,6 +92,9 @@ i18nextInstance.init({
nl: {
translation: nlCatalog,
},
ja: {
translation: jaCatalog,
},
},
// lng: undefined,
fallbackLng: "en",
Expand All @@ -116,6 +121,7 @@ i18nextInstance.addResourceBundle("fr", "translation", frLang, true);
i18nextInstance.addResourceBundle("de", "translation", deLang, true);
i18nextInstance.addResourceBundle("es", "translation", esLang, true);
i18nextInstance.addResourceBundle("nl", "translation", nlLang, true);
i18nextInstance.addResourceBundle("ja", "translation", jaLang, true);

const i18nextInstanceEN = i18nextInstance.cloneInstance();
i18nextInstanceEN.changeLanguage("en").then((_t) => {
Expand All @@ -133,6 +139,7 @@ export const AvailableLanguages = {
de: "Deutsch",
es: "Español",
nl: "Dutch",
ja: "日本語",
};

interface LocalizedContent {
Expand Down
20 changes: 20 additions & 0 deletions src/resources/docs/ja/about.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Readium Desktopについて

## バージョン

**{{version}}**

*{{date}}*

*{{branch}} - {{short}}*

## 著作権

Copyright 2018 European Digital Reading Lab

[BSD-3 license] (https://opensource.org/licenses/BSD-3-Clause)

Readium Desktop wouldn't have been developed without the financial help
of the CNL (Centre National du Livre, France)

<img src="{{cnlLogoUrl}}" height="50" />
1 change: 1 addition & 0 deletions src/resources/docs/ja/help.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# ヘルプ
16 changes: 16 additions & 0 deletions src/resources/docs/ja/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// ==LICENSE-BEGIN==
// Copyright 2017 European Digital Reading Lab. All rights reserved.
// Licensed to the Readium Foundation under one or more contributor license agreements.
// Use of this source code is governed by a BSD-style license
// that can be found in the LICENSE file exposed on Github (readium) in the project repository.
// ==LICENSE-END==

import * as about from "./about.md";
import * as help from "./help.md";
import * as news from "./news.md";

export {
about,
help,
news,
};
1 change: 1 addition & 0 deletions src/resources/docs/ja/news.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# 新着情報
27 changes: 27 additions & 0 deletions src/resources/information/ja.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
Thorium Readerについて
=======================

Windows 10/10Sのコンピューターで,EPUB形式の電子書籍を追加して読むことができます。検索機能や自分だけのタグ付け機能があるコンピューター内蔵の本棚を通して,素晴らしい読書体験ができます。また,高度なカスタマイズ機能を持った読書画面の設定,目次やページリストを使った簡単なナビゲーション,読書位置を示すプログレスバー,付箋化されたしおり,Zenモードなどを含みます。

- 複雑なEPUB3の電子書籍を楽しめます。固定型レイアウト,オーディオやビデオがついたもの,アニメーションやインタラクティブなものなど。
- 公共の図書館,または電子書籍の販売店から提供される,Readium LCPで保護された電子書籍を開けます。
- オンラインの出版目録(OPDSフィード)の簡単なナビゲーション経由で,無料の電子書籍を入手できます。
- キーボードを使った完全なナビゲーションを試せます。
- 視覚障害者の方へ。スクリーンリーダーとして,NVDAまたはNarratorを使えます。

広告はありません。個人のデータがどこかに渡ることもありません。

アプリケーションは現在,4つの言語(英語,フランス語,ドイツ語,スペイン語)に翻訳されています。今後,より多くの言語に翻訳されるでしょう。

Copyright 2019 European Digital Reading Lab. All rights reserved.
Licensed to the Readium Foundation under one or more contributor license agreements.

このアプリケーションは,オープンソースであり,BSD 3ライセンスのもとでリリースされています。
オープンソースのReadium Desktop toolkitに基づいています。

プロジェクトは常に進化しており,修正と新機能が定期的に追加されるでしょう。

このプロジェクトは,次の組織の財政的支援なしに日の目を見ることはありませんでした。

- CNL (Centre National du livre), France
- Ministère de la Culture, France
1 change: 1 addition & 0 deletions src/resources/locale-names/jaLang.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"languages": {"gv": "マン島語", "gu": "グジャラート語", "gd": "スコットランド・ゲール語", "ga": "アイルランド語", "gn": "グアラニー語", "gl": "ガリシア語", "lg": "ルガンダ語", "lb": "ルクセンブルク語", "la": "ラテン語", "ln": "リンガラ語", "lo": "ラーオ語", "tt": "タタール語", "tr": "トルコ語", "ts": "ツォンガ語", "li": "リンブルフ語", "lv": "ラトビア語", "to": "トンガ語", "lt": "リトアニア語", "lu": "ルバ・カタンガ語", "tk": "トルクメン語", "th": "タイ語", "ti": "ティグリニャ語", "tg": "タジク語", "te": "テルグ語", "ta": "タミル語", "yi": "イディッシュ語", "yo": "ヨルバ語", "de": "ドイツ語", "da": "デンマーク語", "dz": "ゾンカ語", "st": "ソト語", "dv": "ディベヒ語", "qu": "ケチュア語", "el": "ギリシア語", "eo": "エスペラント", "en": "英語", "zh": "中国語", "ee": "エウェ語", "za": "チワン語", "mh": "マーシャル語", "uk": "ウクライナ語", "eu": "バスク語", "et": "エストニア語", "es": "スペイン語", "ru": "ロシア語", "rw": "ルワンダ語", "rm": "ロマンシュ語", "rn": "ルンディ語", "ro": "ルーマニア語,モルドバ語", "bn": "ベンガル語", "be": "ベラルーシ語", "bg": "ブルガリア語", "ba": "バシキール語", "wa": "ワロン語", "wo": "ウォロフ語", "bm": "バンバラ語", "jv": "ジャワ語", "bo": "チベット語", "bh": "ビハール語", "bi": "ビスラマ語", "br": "ブルトン語", "bs": "ボスニア語", "ja": "日本語", "om": "オロモ語", "oj": "オジブウェー語", "ty": "タヒチ語", "oc": "オック語", "tw": "トウィ語", "os": "オセット語", "or": "オリヤー語", "xh": "コサ語", "ch": "チャモロ語", "co": "コルシカ語", "ca": "カタルーニャ語,バレンシア語", "ce": "チェチェン語", "cy": "ウェールズ語", "cs": "チェコ語", "cr": "クリー語", "cv": "チュヴァシ語", "cu": "古代教会スラヴ語,教会スラヴ語", "ve": "ヴェンダ語", "ps": "パシュトー語", "pt": "ポルトガル語", "tl": "タガログ語", "pa": "パンジャーブ語", "vi": "ベトナム語", "pi": "パーリ語", "is": "アイスランド語", "pl": "ポーランド語", "hz": "ヘレロ語", "hy": "アルメニア語", "hr": "クロアチア語", "iu": "イヌクティトゥット語", "ht": "ハイチ語", "hu": "ハンガリー語", "hi": "ヒンディー語", "ho": "ヒリモツ語", "ha": "ハウサ語", "he": "ヘブライ語", "mg": "マダガスカル語", "uz": "ウズベク語", "ml": "マラヤーラム語", "mn": "モンゴル語", "mi": "マオリ語", "ik": "イヌピアック語", "mk": "マケドニア語", "ur": "ウルドゥー語", "mt": "マルタ語", "ms": "マレー語", "mr": "マラーティー語", "ug": "ウイグル語", "my": "ビルマ語", "ki": "キクユ語", "aa": "アファル語", "ab": "アブハズ語", "ae": "アヴェスター語", "ss": "スワジ語", "af": "アフリカーンス語", "tn": "ツワナ語", "sw": "スワヒリ語", "ak": "アカン語", "am": "アムハラ語", "it": "イタリア語", "an": "アラゴン語", "ii": "四川彝語", "ia": "インターリングア", "as": "アッサム語", "ar": "アラビア語", "su": "スンダ語", "io": "イド語", "av": "アヴァル語", "ay": "アイマラ語", "az": "アゼルバイジャン語", "ie": "インターリング", "id": "インドネシア語", "ig": "イボ語", "sk": "スロバキア語", "sr": "セルビア語", "nl": "オランダ語", "nn": "ノルウェー語(ニーノシュク)", "no": "ノルウェー語", "na": "ナウル語", "nb": "ノルウェー語(ブークモール)", "nd": "北ンデベレ語", "ne": "ネパール語", "ng": "ンドンガ語", "ny": "チェワ語", "vo": "ヴォラピュク", "zu": "ズールー語", "so": "ソマリ語", "nr": "南ンデベレ語", "nv": "ナバホ語", "sn": "ショナ語", "fr": "フランス語", "sm": "サモア語", "fy": "西フリジア語", "sv": "スウェーデン語", "fa": "ペルシア語", "ff": "フラニ語", "fi": "フィンランド語", "fj": "フィジー語", "sa": "サンスクリット", "fo": "フェロー語", "ka": "グルジア語", "kg": "コンゴ語", "kk": "カザフ語", "kj": "クワニャマ語", "sq": "アルバニア語", "ko": "朝鮮語", "kn": "カンナダ語", "km": "クメール語", "kl": "グリーンランド語", "ks": "カシミール語", "kr": "カヌリ語", "si": "シンハラ語", "kw": "コーンウォール語", "kv": "コミ語", "ku": "クルド語", "sl": "スロベニア語", "sc": "サルデーニャ語", "ky": "キルギス語", "sg": "サンゴ語", "se": "北部サーミ語", "sd": "シンド語"}}
Loading

0 comments on commit 8f321e1

Please sign in to comment.