chore: Enable the languages no, zh-CN, hu (#2135)
This commit is contained in:
parent
4635e5bb44
commit
98e20e8607
7 changed files with 82 additions and 8 deletions
|
@ -17,6 +17,7 @@ import ja from './locale/ja';
|
||||||
import ko from './locale/ko';
|
import ko from './locale/ko';
|
||||||
import ml from './locale/ml';
|
import ml from './locale/ml';
|
||||||
import nl from './locale/nl';
|
import nl from './locale/nl';
|
||||||
|
import no from './locale/no';
|
||||||
import pl from './locale/pl';
|
import pl from './locale/pl';
|
||||||
import pt from './locale/pt';
|
import pt from './locale/pt';
|
||||||
import pt_BR from './locale/pt_BR';
|
import pt_BR from './locale/pt_BR';
|
||||||
|
@ -28,7 +29,7 @@ import ta from './locale/ta';
|
||||||
import tr from './locale/tr';
|
import tr from './locale/tr';
|
||||||
import uk from './locale/uk';
|
import uk from './locale/uk';
|
||||||
import vi from './locale/vi';
|
import vi from './locale/vi';
|
||||||
import zh from './locale/zh';
|
import zh_CN from './locale/zh_CN';
|
||||||
import zh_TW from './locale/zh_TW';
|
import zh_TW from './locale/zh_TW';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
@ -51,6 +52,7 @@ export default {
|
||||||
ko,
|
ko,
|
||||||
ml,
|
ml,
|
||||||
nl,
|
nl,
|
||||||
|
no,
|
||||||
pl,
|
pl,
|
||||||
pt,
|
pt,
|
||||||
pt_BR,
|
pt_BR,
|
||||||
|
@ -62,6 +64,6 @@ export default {
|
||||||
tr,
|
tr,
|
||||||
uk,
|
uk,
|
||||||
vi,
|
vi,
|
||||||
zh,
|
zh_CN,
|
||||||
zh_TW,
|
zh_TW,
|
||||||
};
|
};
|
||||||
|
|
33
app/javascript/dashboard/i18n/locale/no/index.js
Normal file
33
app/javascript/dashboard/i18n/locale/no/index.js
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
import { default as _agentMgmt } from './agentMgmt.json';
|
||||||
|
import { default as _labelsMgmt } from './labelsMgmt.json';
|
||||||
|
import { default as _cannedMgmt } from './cannedMgmt.json';
|
||||||
|
import { default as _chatlist } from './chatlist.json';
|
||||||
|
import { default as _contact } from './contact.json';
|
||||||
|
import { default as _conversation } from './conversation.json';
|
||||||
|
import { default as _inboxMgmt } from './inboxMgmt.json';
|
||||||
|
import { default as _login } from './login.json';
|
||||||
|
import { default as _report } from './report.json';
|
||||||
|
import { default as _resetPassword } from './resetPassword.json';
|
||||||
|
import { default as _setNewPassword } from './setNewPassword.json';
|
||||||
|
import { default as _settings } from './settings.json';
|
||||||
|
import { default as _signup } from './signup.json';
|
||||||
|
import { default as _integrations } from './integrations.json';
|
||||||
|
import { default as _generalSettings } from './generalSettings.json';
|
||||||
|
|
||||||
|
export default {
|
||||||
|
..._agentMgmt,
|
||||||
|
..._cannedMgmt,
|
||||||
|
..._chatlist,
|
||||||
|
..._contact,
|
||||||
|
..._conversation,
|
||||||
|
..._inboxMgmt,
|
||||||
|
..._login,
|
||||||
|
..._report,
|
||||||
|
..._labelsMgmt,
|
||||||
|
..._resetPassword,
|
||||||
|
..._setNewPassword,
|
||||||
|
..._settings,
|
||||||
|
..._signup,
|
||||||
|
..._integrations,
|
||||||
|
..._generalSettings,
|
||||||
|
};
|
33
app/javascript/dashboard/i18n/locale/zh_CN/index.js
Normal file
33
app/javascript/dashboard/i18n/locale/zh_CN/index.js
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
import { default as _agentMgmt } from './agentMgmt.json';
|
||||||
|
import { default as _labelsMgmt } from './labelsMgmt.json';
|
||||||
|
import { default as _cannedMgmt } from './cannedMgmt.json';
|
||||||
|
import { default as _chatlist } from './chatlist.json';
|
||||||
|
import { default as _contact } from './contact.json';
|
||||||
|
import { default as _conversation } from './conversation.json';
|
||||||
|
import { default as _inboxMgmt } from './inboxMgmt.json';
|
||||||
|
import { default as _login } from './login.json';
|
||||||
|
import { default as _report } from './report.json';
|
||||||
|
import { default as _resetPassword } from './resetPassword.json';
|
||||||
|
import { default as _setNewPassword } from './setNewPassword.json';
|
||||||
|
import { default as _settings } from './settings.json';
|
||||||
|
import { default as _signup } from './signup.json';
|
||||||
|
import { default as _integrations } from './integrations.json';
|
||||||
|
import { default as _generalSettings } from './generalSettings.json';
|
||||||
|
|
||||||
|
export default {
|
||||||
|
..._agentMgmt,
|
||||||
|
..._cannedMgmt,
|
||||||
|
..._chatlist,
|
||||||
|
..._contact,
|
||||||
|
..._conversation,
|
||||||
|
..._inboxMgmt,
|
||||||
|
..._login,
|
||||||
|
..._report,
|
||||||
|
..._labelsMgmt,
|
||||||
|
..._resetPassword,
|
||||||
|
..._setNewPassword,
|
||||||
|
..._settings,
|
||||||
|
..._signup,
|
||||||
|
..._integrations,
|
||||||
|
..._generalSettings,
|
||||||
|
};
|
|
@ -17,6 +17,7 @@ import { default as ja } from './locale/ja.json';
|
||||||
import { default as ko } from './locale/ko.json';
|
import { default as ko } from './locale/ko.json';
|
||||||
import { default as ml } from './locale/ml.json';
|
import { default as ml } from './locale/ml.json';
|
||||||
import { default as nl } from './locale/nl.json';
|
import { default as nl } from './locale/nl.json';
|
||||||
|
import { default as no } from './locale/no.json';
|
||||||
import { default as pl } from './locale/pl.json';
|
import { default as pl } from './locale/pl.json';
|
||||||
import { default as pt } from './locale/pt.json';
|
import { default as pt } from './locale/pt.json';
|
||||||
import { default as pt_BR } from './locale/pt_BR.json';
|
import { default as pt_BR } from './locale/pt_BR.json';
|
||||||
|
@ -28,7 +29,8 @@ import { default as ta } from './locale/ta.json';
|
||||||
import { default as tr } from './locale/tr.json';
|
import { default as tr } from './locale/tr.json';
|
||||||
import { default as uk } from './locale/uk.json';
|
import { default as uk } from './locale/uk.json';
|
||||||
import { default as vi } from './locale/vi.json';
|
import { default as vi } from './locale/vi.json';
|
||||||
import { default as zh } from './locale/zh.json';
|
import { default as zh_CN } from './locale/zh_CN.json';
|
||||||
|
import { default as zh_TW } from './locale/zh_TW.json';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
ar,
|
ar,
|
||||||
|
@ -50,6 +52,7 @@ export default {
|
||||||
ko,
|
ko,
|
||||||
ml,
|
ml,
|
||||||
nl,
|
nl,
|
||||||
|
no,
|
||||||
pl,
|
pl,
|
||||||
pt,
|
pt,
|
||||||
pt_BR,
|
pt_BR,
|
||||||
|
@ -61,5 +64,6 @@ export default {
|
||||||
tr,
|
tr,
|
||||||
uk,
|
uk,
|
||||||
vi,
|
vi,
|
||||||
zh,
|
zh_CN,
|
||||||
|
zh_TW,
|
||||||
};
|
};
|
||||||
|
|
|
@ -29,8 +29,10 @@ LANGUAGES_CONFIG = {
|
||||||
24 => { name: 'čeština (cs)', iso_639_3_code: 'ces', iso_639_1_code: 'cs', enabled: true },
|
24 => { name: 'čeština (cs)', iso_639_3_code: 'ces', iso_639_1_code: 'cs', enabled: true },
|
||||||
25 => { name: 'suomi, suomen kieli (fi)', iso_639_3_code: 'fin', iso_639_1_code: 'fi', enabled: true },
|
25 => { name: 'suomi, suomen kieli (fi)', iso_639_3_code: 'fin', iso_639_1_code: 'fi', enabled: true },
|
||||||
26 => { name: 'Bahasa Indonesia (id)', iso_639_3_code: 'ind', iso_639_1_code: 'id', enabled: true },
|
26 => { name: 'Bahasa Indonesia (id)', iso_639_3_code: 'ind', iso_639_1_code: 'id', enabled: true },
|
||||||
27 => { name: 'Svenska (sv)', iso_639_3_code: 'swe', iso_639_1_code: 'sv', enabled: true }
|
27 => { name: 'Svenska (sv)', iso_639_3_code: 'swe', iso_639_1_code: 'sv', enabled: true },
|
||||||
|
28 => { name: 'magyar nyelv (hu)', iso_639_3_code: 'hun', iso_639_1_code: 'hu', enabled: true },
|
||||||
|
29 => { name: 'norsk (no)', iso_639_3_code: 'nor', iso_639_1_code: 'no', enabled: true },
|
||||||
|
30 => { name: '中文 (zh-CN)', iso_639_3_code: 'zho', iso_639_1_code: 'zh_CN', enabled: true }
|
||||||
}.filter { |_key, val| val[:enabled] }.freeze
|
}.filter { |_key, val| val[:enabled] }.freeze
|
||||||
|
|
||||||
Rails.configuration.i18n.available_locales = LANGUAGES_CONFIG.map { |_index, lang| lang[:iso_639_1_code].to_sym }
|
Rails.configuration.i18n.available_locales = LANGUAGES_CONFIG.map { |_index, lang| lang[:iso_639_1_code].to_sym }
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#Additional translations at https://github.com/plataformatec/devise/wiki/I18n
|
#Additional translations at https://github.com/plataformatec/devise/wiki/I18n
|
||||||
zh-CN:
|
zh_CN:
|
||||||
devise:
|
devise:
|
||||||
confirmations:
|
confirmations:
|
||||||
confirmed: "您的电子邮件地址已成功确认。"
|
confirmed: "您的电子邮件地址已成功确认。"
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
#'true': 'foo'
|
#'true': 'foo'
|
||||||
#To learn more, please read the Rails Internationalization guide
|
#To learn more, please read the Rails Internationalization guide
|
||||||
#available at https://guides.rubyonrails.org/i18n.html.
|
#available at https://guides.rubyonrails.org/i18n.html.
|
||||||
zh-CN:
|
zh_CN:
|
||||||
hello: "您好世界"
|
hello: "您好世界"
|
||||||
messages:
|
messages:
|
||||||
reset_password_success: 哇!密码重置请求成功。请检查您的邮件获取说明。
|
reset_password_success: 哇!密码重置请求成功。请检查您的邮件获取说明。
|
||||||
|
|
Loading…
Reference in a new issue