Commit d10227af authored by ButterflyOfFire's avatar ButterflyOfFire Committed by Yamagishi Kazutoshi

Adding arabic. Update application.rb

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