1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-19 06:50:07 +03:00

F #3951: Fix english language (#834)

This commit is contained in:
Sergio Betanzos 2021-02-18 13:33:01 +01:00 committed by GitHub
parent 1a6f26632c
commit c17f67ba53
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View File

@ -44,7 +44,7 @@ oneprovision_optional_create_command: ''
# de_CH: 'German (Switzerland)'
# de: 'German'
# el_GR: 'Greek (Greece)'
# en_US: 'English'
# en: 'English'
# es_ES: 'Spanish'
# et_EE: 'Estonian'
# fa_IR: 'Persian (Iran)'

View File

@ -78,7 +78,7 @@ const translate = (str = '', values) => {
const context = useContext(TranslateContext)
let key = str
if (context?.hash[key]) {
if (context?.hash?.[key]) {
key = context.hash[key]
}

View File

@ -16,7 +16,7 @@
import { defaultApps, defaultAppName } from 'server/utils/constants/defaults'
export const JWT_NAME = 'FireedgeToken'
export const DEFAULT_LANGUAGE = 'en_US'
export const DEFAULT_LANGUAGE = 'en'
export const BY = {
text: 'OpenNebula',

View File

@ -116,7 +116,7 @@ const defaults = {
de_CH: 'German (Switzerland)',
de: 'German',
el_GR: 'Greek (Greece)',
en_US: 'English',
en: 'English',
es_ES: 'Spanish',
et_EE: 'Estonian',
fa_IR: 'Persian (Iran)',