Commit 2c114027 authored by Neetshin's avatar Neetshin Committed by Eugen Rochko

馃嚡馃嚨 Added Japanese translations (#37)

* Added related infos

* Added Language select option of Japanese

* Added main translation files
parent 5b5631f2
......@@ -13,8 +13,9 @@ import en from 'react-intl/locale-data/en';
import fr from 'react-intl/locale-data/fr';
import pl from 'react-intl/locale-data/pl';
import es from 'react-intl/locale-data/es';
import ja from 'react-intl/locale-data/ja';
addLocaleData([...en, ...pl, ...fr, ...es]);
addLocaleData([...en, ...pl, ...fr, ...es, ...ja]);
const messages = require.context('./locales/', false, /\.json$/);
......
......@@ -5,12 +5,14 @@ import flagEn from 'twemoji/2/svg/1f1ec-1f1e7.svg';
import flagFr from 'twemoji/2/svg/1f1eb-1f1f7.svg';
import flagPl from 'twemoji/2/svg/1f1f5-1f1f1.svg';
import flagEs from 'twemoji/2/svg/1f1ea-1f1f8.svg';
import flagJa from 'twemoji/2/svg/1f1ef-1f1f5.svg';
const options = [
{ value: 'en', label: <span><img src={flagEn} className='emoji' alt='' /> English</span> },
{ value: 'fr', label: <span><img src={flagFr} className='emoji' alt='' /> Franais</span> },
{ value: 'es', label: <span><img src={flagEs} className='emoji' alt='' /> Espaol</span> },
{ value: 'pl', label: <span><img src={flagPl} className='emoji' alt='' /> Polszczyzna</span> }
{ value: 'pl', label: <span><img src={flagPl} className='emoji' alt='' /> Polszczyzna</span> },
{ value: 'ja', label: <span><img src={flagJa} className='emoji' alt='' /> 鏃ユ湰瑾</span> }
];
export default class LanguageSelect extends PureComponent {
......
{
"credits.branding": "銉栥儵銉炽儑銈c兂銈",
"credits.branding_text": "銉偞銆併偄銈ゃ偝銉炽併仢銇椼仸璞°倰銉銈︺兂銉兗銉",
"credits.color_scheme": "Mastodon銇偒銉┿兗銈广偔銉笺儬",
"credits.get_press_kit": "銉椼儸銈广偔銉冦儓銈掑叆鎵",
"credits.sponsors": "銈广儩銉炽偟銉",
"credits.support_on_patreon": "Patreon銇с偟銉濄兗銉堛仚銈",
"credits.support_text": "Mastodon銇嚜鐢便仹銈兗銉椼兂銈姐兗銈广仹銇欍傚簝鍛娿併優銉嶃偪銈ゃ偢銉炽偘銆併儥銉炽儊銉c兗銈儯銉斻偪銉仾銇┿伅銇傘倞銇俱仜銈撱傘亗銇仧銇瘎浠樸亴銉椼儹銈搞偋銈儓銇儠銉偪銈ゃ儬銇枊鐧恒倰鐩存帴銈点儩銉笺儓銇椼伨銇欍",
"credits.view_sponsors": "銈广儩銉炽偟銉笺倰琛ㄧず",
"features.additional": "銇曘倝銇倠鐗瑰敬",
"features.anti_abuse": "寮峰姏銇鑽掋倝銇椼儎銉笺儷",
"features.deploy_own": "绨″崢銇枊瑷彲鑳",
"features.find_your_community": "銇傘仾銇熴伀鍚堛仯銇熴偝銉熴儱銉嬨儐銈c兗銈掓帰銇濄亞",
"features.find_your_community_text": "Mastodon銇紤銇ゃ伄鍫存墍銇с倐銇亼銈屻伆锛戙仱銇儷銉笺儷銇屾寚瀹氥仌銈屻仸銇勩倠銈忋亼銇с倐銇傘倞銇俱仜銈撱<strong>浣曞崈銈傘伄銉︺儖銉笺偗銇х浉浜掓帴缍氥仌銈屻仧銈炽儫銉ャ儖銉嗐偅</strong>銇嬨倝閬搞伓銇撱仺銇屻仹銇嶃併仌銇俱仏銇俱仾浜恒呫佸ソ銇裤佽█瑾炪併儖銉笺偤銇簚銇熴仌銈屻仸銇勩伨銇欍傘儷銉笺儷銇屾皸銇叆銈娿伨銇涖倱銇嬶紵 銇濄倢銇倝銇傘仾銇熴伄濂姐亶銇偝銉熴儱銉嬨儐銈c兗銈掕嚜鐢便伀閬搞倱銇у弬鍔犮仹銇嶃伨銇欍傘仌銈夈伀鑹亜鏂规硶銇ㄣ仐銇︺併亗銇仧鑷韩銇с併亗銇仧銇埄鐢ㄨ绱勩伄銈傘仺銇儧銈广儓銇欍倠銇撱仺銈傘仹銇嶃伨銇欙紒",
"features.huge_audience": "宸ㄥぇ銇偑銉笺儑銈c偍銉炽偣",
"features.media_embedding": "鎶曠ǹ銇儭銉囥偅銈€倰鍩嬨倎杈笺伩",
"features.open_standards": "銈兗銉椼兂銇猈eb瑕忔牸銇ч枊鐧",
"features.post_filtering": "鏌旇粺銇叕闁嬬瘎鍥茶ō瀹",
"features.relevancy": "闁㈤c伄銇傘倠銈炽儫銉ャ儖銉嗐偆銈掕ō瀹氬彲鑳",
"features.safety": "銇傘仾銇熴伄銈炽儫銉ャ儖銉嗐偅銇у畨蹇冦仐銇﹀埄鐢",
"features.safety_text": "Mastodon銇姽鏋滅殑銇鑽掋倝銇椼儎銉笺儷銇屼粯灞炪仐銇︺亜銇︺併偑銉炽儵銈ゃ兂涓娿伄鑽掋倝銇椼亱銈夈亗銇仧銈掑畧銈嬨亾銇ㄣ亴銇с亶銇俱仚銆傚皬瑕忔ā銇浉浜掓帴缍氥仌銈屻仧銈炽儫銉ャ儖銉嗐偅銇с伅銆佹不瀹夈倰瀹堛倠銇熴倎銇崝鍔涖倰鍕熴倠銇熴倎銇<strong>銇熴亸銇曘倱銇儮銉囥儸銉笺偪銉</strong>銇屻亜銈嬨仺銇勩亞銇撱仺銇с仚銆傚弸閬斻併亗銇仧銇偝銉熴儱銉嬨儐銈c併亗銈嬨亜銇疢astodon鍏ㄤ綋銇嬨倝銇傘仾銇熴伄鎶曠ǹ銈掕銇銇涖倠銇嬨倰閬搞伓銇撱仺銈傘仹銇嶃伨銇欍",
"features.spoiler_warnings": "璀﹀憡鏂囥倰琛ㄧず鍙兘",
"features.take_control": "銈炽兂銉嗐兂銉勩倰銈炽兂銉堛儹銉笺儷銇椼倛銇",
"features.take_control_text": "Mastodon銇с伅500鏂囧瓧銇俱仹浣裤亪銈嬫枃瀛楁暟銇ㄥ叕闁嬬瘎鍥层倰绱般亱銇忚ō瀹氥仚銈嬨儜銉儠銉仾銉勩兗銉倰浣裤亞銇撱仺銇с佹濄亜閫氥倞銇嚜鍒嗚嚜韬倰琛ㄧ従銇欍倠銇撱仺銇屽嚭鏉ャ伨銇欍備竴鐣壇銇勩亾銇紵鍏ㄣ仸銇姇绋裤亴鏅傜郴鍒楅爢銇ц〃绀恒仌銈屻仸銇勩仸銆佸簝鍛娿倰銈裤偆銉犮儵銈ゃ兂銇尶鍏ャ仚銈嬨仧銈併伀銆屾渶閬╁寲銆嶃仌銈屻仸銇勩伨銇涖倱銆俰OS銈凙ndroid銆併仢銇粬妲樸呫仾銉椼儵銉冦儓銉曘偐銉笺儬鍚戙亼銇偄銉椼儶銇с丮astodon銇父銇亗銇仧銇墜銇腑銇亗銈娿伨銇欍",
"features.toots": "銉堛偉銉笺儓銇ㄥ懠銈撱仹銇勩倠",
"features.user_first": "銉︺兗銈躲兗銇岀涓",
"features.user_first_text": "銇傘仾銇熴伅浜洪枔銇с佽=鍝併仹銇亗銈娿伨銇涖倱銆侻astodon銇嚜鐢便仹銆併儠銉┿兂銉併儯銈ゃ偤銇с伅銇亸銆併偗銉┿偊銉夈儠銈°兂銉囥偅銉炽偘銇倛銇c仸銈兗銉椼兂銈姐兗銈广仹闁嬬櫤銇曘倢銇︺亜銇俱仚銆傚叏銇︺伄銈ゃ兂銈广偪銉炽偣銇垾銆呫伀鎵鏈夈仌銈屻佺鐞嗐仌銈屻併儮銉囥儸銉笺儓銇曘倢銇︺亜銇俱仚銆傚崢涓銇柖鍒╀紒妤伀銈堛倠鐙崰銈勩佸簝鍛娿併儓銉┿儍銈兂銈般伅銇傘倞銇俱仜銈撱<strong>Mastodon銇亗銇仧銇仧銈併伀鍕曘亶</strong>銆併仢銈屼互澶栥伅浣曘倐銇椼伨銇涖倱銆",
"home.as_seen_on": "绱逛粙銇椼仧銉°儑銈c偄",
"home.get_started": "銇曘亗銆佸銈併倛銇",
"home.headline": "銈姐兗銈枫儯銉儘銉冦儓銉兗銈兂銈般倰銆<strong>銇傘仾銇熴伄鎵嬨伄涓伀</strong>",
"home.how_it_works": "浠曠祫銇",
"home.install_your_own": "鑷垎銇с偆銉炽偣銉堛兗銉",
"home.install_your_own_text": "鍙嬩汉銆佸鏃忋佺祫绻斻伄銇熴倎銇嚜鍒嗐仹銈ゃ兂銈广偪銉炽偣銈掑嫊銇嬨仚銇撱仺銇垐鍛炽亴銇傘倠銇倝銆併偆銉炽偣銉堛兗銉伄銇熴倎銇儔銈儱銉°兂銉堛倰瑾個銇撱仺銇嬨倝濮嬨倎銈嬨亾銇ㄣ亴銇с亶銇俱仚銆傝嚜鍒嗐伄銉︺兗銈躲兗銇ㄣ仢銇儲銉笺偠銉笺亴璩艰銇椼仸銇勩倠銈炽兂銉嗐兂銉勩仩銇戙倰銉涖偣銉堛仹銇嶃伨銇欍",
"home.read_the_docs": "銉夈偔銉ャ儭銉炽儓銈掕銈",
"home.tagline": "涓栫晫銇ф渶銈傚ぇ銇嶃亜銆佽嚜鐢便仹銆併偑銉笺儣銉炽偨銉笺偣銇佸垎鏁e瀷銇優銈ゃ偗銉儢銉偖銉炽偘銉嶃儍銉堛儻銉笺偗",
"how_it_works.how_it_works": "浠曠祫銇",
"how_it_works.how_it_works_text1": "Mastodon銇偟銉笺儛銉笺伅瑾般仹銈傞枊瑷仹銇嶃伨銇欍傘仢銈屻仦銈屻伄銈点兗銉愩兗銇嬨呫伄銉︺兗銈躲兗銈€偒銈︺兂銉堛併儲銉笺偠銉笺亴浣滄垚銇欍倠銈炽兂銉嗐兂銉勩併儲銉笺偠銉笺亴璩艰銇欍倠銈炽兂銉嗐兂銉勩倰銉涖偣銉堛仐銇︺亜銇俱仚銆",
"how_it_works.how_it_works_text2": "銇濄倢銇炪倢銇儲銉笺偠銉笺偄銈偊銉炽儓銇儹銉笺偒銉儲銉笺偠銉煎悕(渚: @user)銇ㄣ仢銇偄銈偊銉炽儓銇屻亗銈嬨偟銉笺儛銉笺伄銉夈儭銈ゃ兂(example.com)銇嬨倝鎴愩倞绔嬨仱銈般儹銉笺儛銉仹涓銇悕鍓(@user@example.com)銈掓寔銇c仸銇勩仸銇勩伨銇欍",
"how_it_works.how_it_works_text3": "銉︺兗銈躲兗銇亰浜掋亜銇┿伄銈点兗銉愩兗銇儧銈广儓銇曘倢銇︺亜銇熴仺銇椼仸銈傘佹皸銇亱銇戙仛銇儠銈┿儹銉笺仚銈嬨亾銇ㄣ亴銇с亶銇俱仚銆傘儹銉笺偒銉儲銉笺偠銉笺亴鍒ャ伄銈点兗銉愩兗銇儲銉笺偠銉笺倰銉曘偐銉兗銇欍倠銇撱仺銇с併偟銉笺儛銉笺伅銇濄伄銉︺兗銈躲兗銇姇绋裤倰鍒濄倎銇﹁臣瑾仐銇俱仚銆",
"how_it_works.why_its_cool": "銇┿倱銇儭銉儍銉堛亴銇傘倠銇仹銇欍亱锛",
"how_it_works.why_its_cool_text": "銈点兗銉愩兗銇併仌銇俱仏銇句汉銈勭祫绻斻伀銈堛仯銇︾嫭绔嬨仐銇﹂枊瑷仌銈屻伨銇欍傘仢銈屻倝銇畬鍏ㄣ伀鐣般仾銇c仧銉€儑銉兗銈枫儳銉炽伄鏂归嚌銈掗仼鐢ㄣ仚銈嬨亾銇ㄣ亴銇с亶銈嬨伄銇с併亗銇仧銇ソ銇裤伀銇淬仯銇熴倞銇傘仯銇熴倐銇倰閬搞倱銇犮倞銆佷綔銇c仧銈娿仚銈嬨亾銇ㄣ亴鍑烘潵銇俱仚銆傚垎鏁e瀷銉嶃儍銉堛儻銉笺偗銇斂搴溿亴妞滈柌銇欍倠銇亴闆c仐銇忋佷竴鍙般伄銈点兗銉愩兗鍙嶅悊鐨勩仾鏂归嚌銈掑銈併仧銈娿佺牬鐢c仐銇熴仺銇椼仸銈傘儘銉冦儓銉兗銈伅缍欑稓銇曘倢銆佸弸閬斻倓銉曘偐銉儻銉笺倰鍒ャ伄銉椼儵銉冦儓銉曘偐銉笺儬銇鍐呫仚銈嬪繀瑕併亴鐒°亸銇倞銇俱仚銆",
"nav.code": "銈姐兗銈广偝銉笺儔",
"nav.docs": "銉夈偔銉ャ儭銉炽儓",
"nav.sponsors": "銈广儩銉炽偟銉",
"nav.support": "銈点儩銉笺儓",
"sponsorship.become_a_sponsor": "銈广儩銉炽偟銉笺伀銇倠",
"sponsorship.every_bit_helps": "銇┿倢銇犮亼灏戙仾銇忋仸銈傚叏銇︺亴褰广伀绔嬨仭銇俱仚銆傘仚銇广仸銇并鐚伀鎰熻瑵銈掔敵銇椾笂銇掋伨銇欍",
"sponsorship.silver_sponsors": "銈枫儷銉愩兗銈广儩銉炽偟銉",
"sponsorship.silver_sponsors_text": "<strong>銈枫儷銉愩兗銈广儩銉炽偟銉</strong>銇疢astodon銇40銉夈儷銇嬨倝99銉夈儷銈掓嫚鍑恒仐銇︺亜銈嬨偣銉濄兂銈点兗銇с仚銆",
"sponsorship.sponsors": "銈广儩銉炽偟銉",
"sponsorship.sponsors_of_mastodon": "Mastodon銇偣銉濄兂銈点兗",
"sponsorship.sponsors_text": "<strong>銈广儩銉炽偟銉</strong>銇10銉夈儷銇嬨倝39銉夈儷銈掓嫚鍑恒仐銇︺亜銈嬨偣銉濄兂銈点兗銇с仚銆",
"sponsorship.support_the_project": "銉椼儹銈搞偋銈儓銈掋偟銉濄兗銉堛仚銈",
"sponsorship.thanks_to": "Mastodon銇嚜鐢便仹銈兗銉椼兂銈姐兗銈广仹銇欍傚簝鍛娿併優銉嶃偪銈ゃ偢銉炽偘銆併儥銉炽儊銉c兗銈儯銉斻偪銉仾銇┿伅銇傘倞銇俱仜銈撱傘亗銇仧銇瘎浠樸亴銉椼儹銈搞偋銈儓銇儠銉偪銈ゃ儬銇枊鐧恒倰鐩存帴銈点儩銉笺儓銇椼伨銇欍",
"wizard.column.population": "浜烘暟",
"wizard.column.server": "銈点兗銉愩兗",
"wizard.column.stability": "瀹夊畾鎬",
"wizard.column.theme": "銉嗐兗銉",
"wizard.get_started": "<strong>濮嬨倎銈堛亞:</strong> 銈ゃ兂銈广偪銉炽偣銈掗伕銇",
"wizard.help_me_choose": "鑹亜閬搞伋鏂",
"wizard.search": "銈ゃ兂銈广偪銉炽偣銈掓绱",
"wizard.text": "銇濄倢銇炪倢銇偟銉笺儛銉笺伅鍒嗛洟銇椼仸銇勩仸銆佺嫭绔嬨仐銇︾鐞嗐仌銈屻仸銇勩倠Mastodon銇搞伄鍏ャ倞鍙c仹銇欍傘仼銇偆銉炽偣銈裤兂銈广倰閬搞倱銇с倐鍙嬮仈銇ㄦ皸鍏笺伃銇亸瑭便仚銇撱仺銇屻仹銇嶃伨銇欍亴銆併仢銈屻仦銈屻伀鐣般仾銈嬨儮銉囥儸銉笺偡銉с兂銇柟閲濄亴銇傘倞銇俱仚銇仹銆併亗銇仧銇渶銈傚悎銇c仧銈傘伄銈掗伕銈撱仹銇忋仩銇曘亜銆",
"wizard.tip": "銉掋兂銉:",
"wizard.tip_text": "銇撱倢銇儧銉笺儬銇ㄣ仐銇︽鑳姐仚銈嬨仩銇戙仹銇仾銇忋佷粬銇汉銇屻亗銇仧銈掓帰銇欐檪銇娇銇嗐偄銉夈儸銈广伀銇倞銇俱仚銆<samp>@銉︺兗銈躲兗鍚岪example.com</samp>銇倛銇嗐伀銉°兗銉偄銉夈儸銈广伄銈堛亞銇舰寮忋伀銇倞銇俱仚銆",
"wizard_row.population.full": "婧鍝",
"wizard_row.population.medium": "鏅",
"wizard_row.population.new": "鏂拌",
"wizard_row.stability.awful": "銇ㄣ仸銈傛偑銇",
"wizard_row.stability.intermittent": "鏂稓鐨",
"wizard_row.stability.stable": "瀹夊畾"
}
[
]
\ No newline at end of file
......@@ -4,7 +4,7 @@ import {
LOCALE_CHANGE,
} from './actions';
const supportedLocales = ['en', 'fr', 'pl', 'es'];
const supportedLocales = ['en', 'fr', 'pl', 'es', 'ja'];
const initialLocale = () => {
const lang = navigator.language.split('-')[0];
......
......@@ -3,5 +3,5 @@ const manageTranslations = require('react-intl-translations-manager').default;
manageTranslations({
messagesDirectory: 'build/messages',
translationsDirectory: 'src/locales/',
languages: ['en', 'fr', 'pl', 'es']
languages: ['en', 'fr', 'pl', 'es', 'ja']
});
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment