Skip to content

Commit

Permalink
feat: add japanese and swahili
Browse files Browse the repository at this point in the history
closes #101 and #119
  • Loading branch information
juancarlosfarah committed Jul 2, 2019
1 parent 3fc08c6 commit 58ae1f4
Show file tree
Hide file tree
Showing 3 changed files with 76 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/config/i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,15 @@ import i18n from 'i18next';
import { initReactI18next } from 'react-i18next';
import en from '../langs/en';
import fr from '../langs/fr';
import ja from '../langs/ja';
import sw from '../langs/sw';

i18n.use(initReactI18next).init({
resources: {
en,
fr,
ja,
sw,
},
fallbackLng: 'en',
// debug only when not in production
Expand Down Expand Up @@ -36,7 +40,7 @@ const langs = {
fr: 'Français',
// hu: "Magyar",
// it: "Italiano",
// ja: "日本語",
ja: '日本語',
// ka: "ქართული",
// lt: "lietuvių kalba",
// lv: "Latviešu",
Expand All @@ -47,7 +51,7 @@ const langs = {
// sk: "Slovenský",
// sl: "Slovenščina",
// sr: "српски језик",
// sw: "Kiswahili",
sw: 'Kiswahili',
// tr: "Türkçe",
// uk: "Українська",
// vi: "Tiếng Việt",
Expand Down
35 changes: 35 additions & 0 deletions src/langs/ja.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"translations": {
"Settings": "設定",
"Language": "言語",
"Saved Spaces": "保存済みスペース",
"Spaces Nearby": "付近のスペース",
"Visit a Space": "スペースを訪問",
"Load": "ロード",
"Start": "開始",
"Developer": "開発者",
"Danger Zone! Proceed with caution as changes to this section might lead to data loss.": "危険! データ喪失につながる恐れがあるため、データ変更は慎重に行って下さい.",
"Manually Edit the Database": "データベースを手作業で編集",
"Use Sample Database": "サンプルデータベースを使用",
"Developer Mode": "開発者モード",
"Load a Space": "スペースをロード",
"View": "表示",
"Open": "開く",
"Browse": "閲覧",
"Visit": "訪問",
"No Spaces Available": "利用可能なスペースがありません",
"Preview": "プレビュー",
"You are previewing this space. Any input or changes will not be saved.": "スペースをプレビュー中です。入力および変更した内容は保存されません。",
"Save this space for offline use.": "オフライン版スペースを保存",
"This space requires an internet connection.": "インターネット接続が必要なスペースです。",
"Delete this space.": "このスペースを削除",
"Export this space to share with others.": "共有形式でスペースをエクスポート",
"Synchronize this space with its online version. All user input will be deleted.": "このスペースをオンライン版に同期します。ユーザが入力した内容は全て削除されます。",
"Delete": "削除",
"Are you sure you want to delete this space?": "本当にこのスペースを削除しますか?",
"Sync": "同期",
"Save As": "名前を付けて保存",
"Cancel": "キャンセル",
"Are you sure you want to sync this space? All user input will be deleted.": "本当にこのスペースを同期しますか?ユーザが入力した内容は全て削除されます。"
}
}
35 changes: 35 additions & 0 deletions src/langs/sw.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"translations": {
"Settings": "Mipangilio",
"Language": "Lugha",
"Saved Spaces": "Mikoa Iliyohifadhiwa",
"Spaces Nearby": "Nafasi Karibu",
"Visit a Space": "Tembelea Nafasi",
"Load": "Mzigo",
"Start": "Anza",
"Developer": "Msanidi Programu",
"Danger Zone! Proceed with caution as changes to this section might lead to data loss.": "Eneo la Hatari! Jihadharini kama mabadiliko katika sehemu hii yanaweza kusababisha kupoteza data.",
"Manually Edit the Database": "Badilisha Hariri Hifadhi",
"Use Sample Database": "Tumia Sampuli ya Mfano",
"Developer Mode": "Mfumo wa Wasanidi Programu",
"Load a Space": "Mzigo Nafasi",
"View": "Tazama",
"Open": "Fungua",
"Browse": "Vinjari",
"Visit": "Tembelea",
"No Spaces Available": "Hakuna Nafasi Zilizopo",
"Preview": "Angalia",
"You are previewing this space. Any input or changes will not be saved.": "Unaonyesha nafasi hii. Pembejeo yoyote au mabadiliko hayatahifadhiwa.",
"Save this space for offline use.": "Hifadhi nafasi hii kwa matumizi ya nje ya mtandao.",
"This space requires an internet connection.": "Nafasi hii inahitaji uunganisho wa intaneti.",
"Delete this space.": "Futa nafasi hii.",
"Export this space to share with others.": "Tuma nafasi hii ya kushirikiana na wengine.",
"Synchronize this space with its online version. All user input will be deleted.": "Sawazisha nafasi hii na toleo lake la mtandaoni. Uingizaji wote wa mtumiaji utafutwa.",
"Delete": "Futa",
"Are you sure you want to delete this space?": "Una uhakika unataka kufuta nafasi hii?",
"Sync": "Sawazisha",
"Save As": "Hifadhi Kama",
"Cancel": "Futa",
"Are you sure you want to sync this space? All user input will be deleted.": "Una uhakika unataka kusawazisha nafasi hii? Pembejeo yote ya mtumiaji itafutwa."
}
}

0 comments on commit 58ae1f4

Please sign in to comment.