diff --git a/src/formatDistance.js b/src/formatDistance.js index 68a8e09..bcbc065 100644 --- a/src/formatDistance.js +++ b/src/formatDistance.js @@ -1,4 +1,4 @@ -import { de, enGB, fr, nl, ru } from 'date-fns/locale' +import { de, enGB, fr, nl, ru, it } from 'date-fns/locale' import { formatDistance as formatDistanceReal} from 'date-fns'; function getLocale() { @@ -8,6 +8,7 @@ function getLocale() { "nl": nl, "ru": ru, "de": de, + "it": it, }[localStorage.getItem("language") || "en"]; } diff --git a/src/translations/en.js b/src/translations/en.js index a6bda02..0a4824e 100644 --- a/src/translations/en.js +++ b/src/translations/en.js @@ -8,9 +8,6 @@ module.exports = { "refresh_btn": "Refresh", "me_btn": "Me/Settings", - // These are the page titles - "home_page_title": "Home", - // Me Page "me_page_title": "Me/Settings", "log_out_btn": "Log Out", @@ -19,6 +16,7 @@ module.exports = { "change_language_btn": "Change Language", // Home Page + "home_page_title": "Home", "vaulturl_text": "Vault URL: {{text}}", "password_generator_btn": "Password Generator", "your_token_expires_in": "Your token expires in {{date, until_date}}", diff --git a/src/translations/fr.js b/src/translations/fr.js index a1ffca6..40cd76d 100644 --- a/src/translations/fr.js +++ b/src/translations/fr.js @@ -8,9 +8,6 @@ module.exports = { "refresh_btn": "Rafraichir", "me_btn": "Profil/Paramètres", - // These are the page titles - "home_page_title": "Accueil", - // Me Page "me_page_title": "Profil/Paramètres", "log_out_btn": "Déconnexion", @@ -19,6 +16,7 @@ module.exports = { "change_language_btn": "Changer la langue", // Home Page + "home_page_title": "Accueil", "vaulturl_text": "Adresse du Vault: {{text}}", "password_generator_btn": "Générateur de mot de passe", "your_token_expires_in": "Votre jeton expire dans {{date, until_date}}", diff --git a/src/translations/ru.js b/src/translations/ru.js index b821233..5ce7a84 100644 --- a/src/translations/ru.js +++ b/src/translations/ru.js @@ -8,9 +8,6 @@ module.exports = { "refresh_btn": "Обновить", "me_btn": "Профиль/параметры", - // These are the page titles - "home_page_title": "Главная страница", - // Me Page "me_page_title": "Профиль/параметры", "log_out_btn": "Выход", @@ -19,6 +16,7 @@ module.exports = { "change_language_btn": "Выбор языка", // Home Page + "home_page_title": "Главная страница", "vaulturl_text": "Адрес хранилища: {{text}}", "password_generator_btn": "Генератор паролей", "your_token_expires_in": "Продолжительность ключа: {{date, until_date}}",