feat(lng): Added change language on the fly (#456)

* feat(lng): added change language on the fly

* fixed dropdown

* applied feedbacks

* added translation

* updated bundlesize

* fixed error

* updated snaps

* added french language

* added language in storage

* updated styles

* fixed tests
This commit is contained in:
Priscila Oliveira
2020-04-23 08:20:41 +02:00
committed by GitHub
parent b17368470d
commit 675ee980ee
21 changed files with 731 additions and 176 deletions

View File

@@ -25,14 +25,13 @@ function loadDayJSLocale() {
}
switch (locale.toLowerCase()) {
// At the moment we only support pt-BR, please see: i18n/translations/*
case 'pt-br':
{
require('dayjs/locale/pt-br');
dayjs.locale('pt-br');
}
break;
case 'de':
case 'de-de':
{
require('dayjs/locale/de');
dayjs.locale('de');