adding translations
This commit is contained in:
parent
a8a0bf7271
commit
98e26de42e
11
react-native/app/translations/index.ts
Normal file
11
react-native/app/translations/index.ts
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
import i18next from 'i18next'
|
||||||
|
import RNLanguages from 'react-native-languages';
|
||||||
|
import resources from './resources';
|
||||||
|
|
||||||
|
export const initTranslation = ()=>{
|
||||||
|
i18next.init({
|
||||||
|
compatibilityJSON: 'v3',
|
||||||
|
lng: RNLanguages.language,
|
||||||
|
resources: resources
|
||||||
|
})
|
||||||
|
}
|
12
react-native/app/translations/resources/en-US.ts
Normal file
12
react-native/app/translations/resources/en-US.ts
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
export default {
|
||||||
|
"mobileApp.portals.list.empty.label": "There aren't portals.",
|
||||||
|
"mobileApp.portals.list.add.button.label": "New Portal",
|
||||||
|
"mobileApp.portals.fields.name.label": "Portal Name",
|
||||||
|
"mobileApp.portals.fields.name.placeholder": "BigBlueButton demo",
|
||||||
|
"mobileApp.portals.fields.url.label": "Server URL",
|
||||||
|
"mobileApp.portals.fields.url.placeholder": "https://demo.bigbluebutton.org",
|
||||||
|
"mobileApp.portals.addPortalPopup.confirm.button.label": "Add Portal",
|
||||||
|
"mobileApp.portals.drawerNavigation.button.label": "Portals",
|
||||||
|
"mobileApp.portals.addPortalPopup.validation.emptyFilds": "Empty Fields",
|
||||||
|
"mobileApp.portals.addPortalPopup.validation.portalNameAlreadyExists": "Name Already Exists"
|
||||||
|
}
|
11
react-native/app/translations/resources/index.ts
Normal file
11
react-native/app/translations/resources/index.ts
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
import enUS from "./en-US";
|
||||||
|
import ptBR from "./pt-BR";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
'en-US': {
|
||||||
|
translation: enUS
|
||||||
|
},
|
||||||
|
'pt-BR': {
|
||||||
|
translation: ptBR
|
||||||
|
}
|
||||||
|
}
|
12
react-native/app/translations/resources/pt-BR.ts
Normal file
12
react-native/app/translations/resources/pt-BR.ts
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
export default {
|
||||||
|
"mobileApp.portals.list.empty.label": "Não há portais.",
|
||||||
|
"mobileApp.portals.list.add.button.label": "Novo Portal",
|
||||||
|
"mobileApp.portals.fields.name.label": "Nome do Portal",
|
||||||
|
"mobileApp.portals.fields.name.placeholder": "BigBlueButton demo",
|
||||||
|
"mobileApp.portals.fields.url.label": "URL do Servidor",
|
||||||
|
"mobileApp.portals.fields.url.placeholder": "https://demo.bigbluebutton.org",
|
||||||
|
"mobileApp.portals.addPortalPopup.confirm.button.label": "Adicionar Portal",
|
||||||
|
"mobileApp.portals.drawerNavigation.button.label": "Portais",
|
||||||
|
"mobileApp.portals.addPortalPopup.validation.emptyFilds": "Campos Vazios",
|
||||||
|
"mobileApp.portals.addPortalPopup.validation.portalNameAlreadyExists": "Nome Já Existe"
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user