-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feat/add-i18n-support' into staging
- Loading branch information
Showing
13 changed files
with
187 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"complete": "Complete", | ||
"open": "Open", | ||
"resume_where_i_left_off": "Resume where I left off →", | ||
"comments": "Comments", | ||
"your_notes": "Your notes", | ||
"click_here": "Click here", | ||
"to_start_taking_notes": "to start taking notes.", | ||
"leave_a_comment": "Leave a comment", | ||
"comment_placeholder": "A good comment can help others who are learning :)", | ||
"delete_comment": "Delete comment", | ||
"overview": "Overview", | ||
"mark_learning_as_completed": "Mark learning as completed", | ||
"rate_your_learning_in_this_lesson": "Rate your learning in this lesson", | ||
"next_lesson": "Next lesson", | ||
"onboarding": { | ||
"title": "{name}, What do you want to learn today?", | ||
"description": "Below are some knowledge pathways that will help you learn how to use the Weni Platform for various purposes. Choose the one that interests you to start your learning journey with the platform 💙" | ||
}, | ||
"see_all": "See all", | ||
"paths": "Paths" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"complete": "Completo", | ||
"open": "Abrir", | ||
"resume_where_i_left_off": "Continuar desde donde lo dejé →", | ||
"comments": "Comentarios", | ||
"your_notes": "Tus anotaciones", | ||
"click_here": "Haz clic aquí", | ||
"to_start_taking_notes": "para comenzar a hacer anotaciones.", | ||
"leave_a_comment": "Deja un comentario", | ||
"comment_placeholder": "Un buen comentario puede ayudar a otras personas que están aprendiendo :)", | ||
"delete_comment": "Eliminar comentario", | ||
"overview": "Visión General", | ||
"mark_learning_as_completed": "Marcar aprendizaje como completado", | ||
"rate_your_learning_in_this_lesson": "Evalúa tu aprendizaje en esta clase", | ||
"next_lesson": "Próxima clase", | ||
"onboarding": { | ||
"title": "{name}, ¿Qué quieres aprender hoy?", | ||
"description": "A continuación, se enumeran algunas rutas de conocimiento que te ayudarán a aprender a utilizar la Plataforma Weni para diversos fines. Elige la que más te interese para comenzar tu viaje de aprendizaje en la plataforma 💙" | ||
}, | ||
"see_all": "Ver todo", | ||
"paths": "Rutas" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"complete": "Completo", | ||
"open": "Abrir", | ||
"resume_where_i_left_off": "Continuar de onde parei →", | ||
"comments": "Comentários", | ||
"your_notes": "Suas anotações", | ||
"click_here": "Clique aqui", | ||
"to_start_taking_notes": "para começar a fazer anotações.", | ||
"leave_a_comment": "Deixe um comentário", | ||
"comment_placeholder": "Um bom comentário pode ajudar outras pessoas que estão aprendendo :)", | ||
"delete_comment": "Deletar comentário", | ||
"overview": "Visão Geral", | ||
"mark_learning_as_completed": "Marcar aprendizado como concluído", | ||
"rate_your_learning_in_this_lesson": "Avalie seu aprendizado nesta aula", | ||
"next_lesson": "Próxima aula", | ||
"onboarding": { | ||
"title": "{name}, O que você quer aprender hoje?", | ||
"description": "Abaixo estão listadas algumas trilhas de conhecimento que vão lhe ajudar a aprender a utilizar a Plataforma Weni para diversos fins. Escolha a que for de seu interesse para começar uma jornada de aprendizado da plataforma 💙" | ||
}, | ||
"see_all": "Ver tudo", | ||
"paths": "Trilhas" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
import { createI18n } from 'vue-i18n'; | ||
|
||
// eslint-disable-next-line camelcase | ||
import pt_br from '@/locales/pt_br.json'; | ||
import en from '@/locales/en.json'; | ||
import es from '@/locales/es.json'; | ||
|
||
import('moment/dist/locale/es.js'); | ||
import('moment/dist/locale/pt-br.js'); | ||
|
||
import moment from 'moment'; | ||
|
||
moment.locale('pt-br'); | ||
|
||
const messages = { | ||
'pt-br': pt_br, | ||
en, | ||
es, | ||
}; | ||
|
||
const i18n = createI18n({ | ||
locale: 'en', | ||
fallbackLocale: 'en', | ||
messages, | ||
dateTimeFormats: { | ||
'pt-br': { | ||
short: { | ||
year: 'numeric', | ||
month: '2-digit', | ||
day: '2-digit', | ||
}, | ||
long: { | ||
month: 'long', | ||
day: '2-digit', | ||
}, | ||
}, | ||
en: { | ||
short: { | ||
year: 'numeric', | ||
month: '2-digit', | ||
day: '2-digit', | ||
}, | ||
long: { | ||
month: 'long', | ||
day: '2-digit', | ||
}, | ||
}, | ||
es: { | ||
short: { | ||
year: 'numeric', | ||
month: '2-digit', | ||
day: '2-digit', | ||
}, | ||
long: { | ||
month: 'long', | ||
day: '2-digit', | ||
}, | ||
}, | ||
}, | ||
}); | ||
|
||
export default i18n; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.