Commit 522e46ed authored by Yamagishi Kazutoshi's avatar Yamagishi Kazutoshi Committed by Eugen Rochko

Add available locale

parent 065de8d3
......@@ -2,13 +2,18 @@ import React from 'react';
import { Provider } from 'react-redux';
import { IntlProvider, addLocaleData } from 'react-intl';
import en from 'react-intl/locale-data/en';
import de from 'react-intl/locale-data/de';
import ja from 'react-intl/locale-data/ja';
import { defaultLocale } from '../../../locales/default';
import { translations } from '../../../locales/translations';
import configureStore from '../store/helloWorldStore';
import HelloWorldContainer from '../containers/HelloWorldContainer';
addLocaleData([ ...en, ...ja ]);
addLocaleData([
...en,
...de,
...ja,
]);
const locale = document.documentElement.lang || defaultLocale;
const messages = translations[locale] || translations[defaultLocale];
......
......@@ -24,7 +24,7 @@ module MastodonBridge
# All translations from config/locales/*.rb,yml are auto loaded.
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
config.i18n.available_locales = [:en, :ja]
config.i18n.available_locales = [:en, :de, :ja]
config.active_job.queue_adapter = :sidekiq
end
......
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