diff --git a/src/lib/i18n/i18n-types.ts b/src/lib/i18n/i18n-types.ts index a54fe41..611ac58 100644 --- a/src/lib/i18n/i18n-types.ts +++ b/src/lib/i18n/i18n-types.ts @@ -11,6 +11,7 @@ export type Locales = | 'en' | 'es' | 'it' + | 'pt-br' | 'ru' | 'uk' diff --git a/src/lib/i18n/i18n-util.async.ts b/src/lib/i18n/i18n-util.async.ts index 2da5cac..ff1d9cc 100644 --- a/src/lib/i18n/i18n-util.async.ts +++ b/src/lib/i18n/i18n-util.async.ts @@ -11,6 +11,7 @@ const localeTranslationLoaders = { en: () => import('./en'), es: () => import('./es'), it: () => import('./it'), + 'pt-br': () => import('./pt-br'), ru: () => import('./ru'), uk: () => import('./uk'), } diff --git a/src/lib/i18n/i18n-util.sync.ts b/src/lib/i18n/i18n-util.sync.ts index b7108f3..8d6e471 100644 --- a/src/lib/i18n/i18n-util.sync.ts +++ b/src/lib/i18n/i18n-util.sync.ts @@ -10,6 +10,7 @@ import de from './de' import en from './en' import es from './es' import it from './it' +import pt_br from './pt-br' import ru from './ru' import uk from './uk' @@ -19,6 +20,7 @@ const localeTranslations = { en, es, it, + 'pt-br': pt_br, ru, uk, } diff --git a/src/lib/i18n/i18n-util.ts b/src/lib/i18n/i18n-util.ts index 604c441..6b43052 100644 --- a/src/lib/i18n/i18n-util.ts +++ b/src/lib/i18n/i18n-util.ts @@ -15,6 +15,7 @@ export const locales: Locales[] = [ 'en', 'es', 'it', + 'pt-br', 'ru', 'uk' ] diff --git a/src/lib/i18n/pt-br/index.ts b/src/lib/i18n/pt-br/index.ts new file mode 100644 index 0000000..fb3c591 --- /dev/null +++ b/src/lib/i18n/pt-br/index.ts @@ -0,0 +1,12 @@ +import type { Translation } from '../i18n-types'; +import en from '../en'; +import listd from './listd.json'; +import onboarding from './onboarding.json'; + +const ptBR: Translation = { + ...(en as Translation), + ...listd, + onboarding, +}; + +export default ptBR; diff --git a/src/lib/i18n/pt-br/listd.json b/src/lib/i18n/pt-br/listd.json new file mode 100644 index 0000000..f3f6a5c --- /dev/null +++ b/src/lib/i18n/pt-br/listd.json @@ -0,0 +1,5 @@ +{ + "tagline": "Apresentando o YouTube da melhor forma. Se procura novos conteúdos para assistir ou deseja compartilhar sua própria lista de vídeos com seus amigos, nosso aplicativo é a escolha certa.", + "signUp": "Registrar-se com o YouTube", + "message": "Olá Mundo!" +} \ No newline at end of file diff --git a/src/lib/i18n/pt-br/onboarding.json b/src/lib/i18n/pt-br/onboarding.json new file mode 100644 index 0000000..608832e --- /dev/null +++ b/src/lib/i18n/pt-br/onboarding.json @@ -0,0 +1,12 @@ + +{ + "labels": { + "username": "Nome de usuário", + "uploadFile": "Enviar arquivo" + }, + "messages": { + "main": "Bem-vindo ao Listd! Bora configurar seu perfil.", + "avatar": "Enviar imagem de perfil.", + "final": "Finalizamos! Bora começar!" + } +} \ No newline at end of file