From c801ce7cd74e7963dbe3b49601f84830dec16bd0 Mon Sep 17 00:00:00 2001
From: Ryo ONODERA <ryo_on@yk.rim.or.jp>
Date: Thu, 14 Apr 2016 08:29:46 +0900
Subject: Add Japanese translation for platform command and web interface
 (#2700)

* Add Japanese translation for platform command and web interface

* Fix typo in Japanese webapp translation on Pootle and regenerate JSON file
---
 webapp/i18n/i18n.jsx | 10 ++++++++++
 1 file changed, 10 insertions(+)

(limited to 'webapp/i18n/i18n.jsx')

diff --git a/webapp/i18n/i18n.jsx b/webapp/i18n/i18n.jsx
index f153b54f3..2214fd386 100644
--- a/webapp/i18n/i18n.jsx
+++ b/webapp/i18n/i18n.jsx
@@ -3,12 +3,14 @@
 
 const es = require('!!file?name=i18n/[name].[ext]!./es.json');
 const fr = require('!!file?name=i18n/[name].[ext]!./fr.json');
+const ja = require('!!file?name=i18n/[name].[ext]!./ja.json');
 const pt = require('!!file?name=i18n/[name].[ext]!./pt.json');
 
 import {addLocaleData} from 'react-intl';
 import enLocaleData from 'react-intl/locale-data/en';
 import esLocaleData from 'react-intl/locale-data/es';
 import frLocaleData from 'react-intl/locale-data/fr';
+import jaLocaleData from 'react-intl/locale-data/ja';
 import ptLocaleData from 'react-intl/locale-data/pt';
 
 const languages = {
@@ -27,6 +29,11 @@ const languages = {
         name: 'Français (Beta)',
         url: fr
     },
+    ja: {
+        value: 'ja',
+        name: '日本語 (Beta)',
+        url: ja
+    },
     pt: {
         value: 'pt',
         name: 'Portugues (Beta)',
@@ -48,12 +55,14 @@ export function safariFix(callback) {
         'intl/locale-data/jsonp/en.js',
         'intl/locale-data/jsonp/es.js',
         'intl/locale-data/jsonp/fr.js',
+        'intl/locale-data/jsonp/ja.js',
         'intl/locale-data/jsonp/pt.js'
     ], (require) => {
         require('intl');
         require('intl/locale-data/jsonp/en.js');
         require('intl/locale-data/jsonp/es.js');
         require('intl/locale-data/jsonp/fr.js');
+        require('intl/locale-data/jsonp/ja.js');
         require('intl/locale-data/jsonp/pt.js');
         callback();
     });
@@ -63,5 +72,6 @@ export function doAddLocaleData() {
     addLocaleData(enLocaleData);
     addLocaleData(esLocaleData);
     addLocaleData(frLocaleData);
+    addLocaleData(jaLocaleData);
     addLocaleData(ptLocaleData);
 }
-- 
cgit v1.2.3-1-g7c22

