adding translations

This commit is contained in:
gustavo-em 2022-03-01 16:29:17 -03:00
parent a8a0bf7271
commit 98e26de42e
4 changed files with 46 additions and 0 deletions

View 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
})
}

View 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"
}

View 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
}
}

View 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"
}