Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

i18n Brazilian portuguese language support 🇧🇷 #19

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/lib/i18n/i18n-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export type Locales =
| 'en'
| 'es'
| 'it'
| 'pt-br'
| 'ru'
| 'uk'

Expand Down
1 change: 1 addition & 0 deletions src/lib/i18n/i18n-util.async.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
}
Expand Down
2 changes: 2 additions & 0 deletions src/lib/i18n/i18n-util.sync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand All @@ -19,6 +20,7 @@ const localeTranslations = {
en,
es,
it,
'pt-br': pt_br,
ru,
uk,
}
Expand Down
1 change: 1 addition & 0 deletions src/lib/i18n/i18n-util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export const locales: Locales[] = [
'en',
'es',
'it',
'pt-br',
'ru',
'uk'
]
Expand Down
12 changes: 12 additions & 0 deletions src/lib/i18n/pt-br/index.ts
Original file line number Diff line number Diff line change
@@ -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;
5 changes: 5 additions & 0 deletions src/lib/i18n/pt-br/listd.json
Original file line number Diff line number Diff line change
@@ -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!"
}
12 changes: 12 additions & 0 deletions src/lib/i18n/pt-br/onboarding.json
Original file line number Diff line number Diff line change
@@ -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!"
}
}