added initial translations for

This commit is contained in:
Grzegorz Leoniec 2018-12-18 14:32:45 +01:00
parent 13af495a5d
commit fe04d383d3
No known key found for this signature in database
GPG Key ID: 3AA43686D4EB1377
10 changed files with 173 additions and 8 deletions

View File

@ -10,7 +10,7 @@
<img
alt="English"
title="English"
src="/img/locale-flags/en.svg"
:src="`/img/locale-flags/${$i18n.locale()}.svg`"
height="26"
/>
</a>
@ -22,7 +22,7 @@
<img
alt="Deutsch"
title="Deutsch"
src="/img/locale-flags/de.svg"
:src="`/img/locale-flags/${$i18n.locale()}.svg`"
height="26"
/>
</a>

View File

@ -48,7 +48,7 @@
"comments": "Kommentare",
"notifications": "Benachrichtigungen",
"organizations": "Organisationen",
"projects": "Projects",
"projects": "Projekte",
"invites": "Einladungen",
"follows": "Folgen",
"shouts": "Shouts"

View File

@ -1,6 +1,6 @@
{
"login": {
"copy": "If you already have an human-connection account, login here.",
"copy": "If you already have a human-connection account, login here.",
"login": "Login",
"logout": "Logout",
"email": "Your Email",
@ -48,7 +48,7 @@
"comments": "Comments",
"notifications": "Notifications",
"organizations": "Organizations",
"projects": "Projekte",
"projects": "Projects",
"invites": "Invites",
"follows": "Follows",
"shouts": "Shouts"

7
locales/es.json Normal file
View File

@ -0,0 +1,7 @@
{
"quotes": {
"african": {
"author": "Proverbio africano"
}
}
}

84
locales/fr.json Normal file
View File

@ -0,0 +1,84 @@
{
"login": {
"copy": "Si vous avez déjà un compte human-connection, connectez-vous ici.",
"login": "Connexion",
"logout": "Déconnexion",
"email": "Votre Message électronique",
"password": "Votre mot de passe",
"moreInfo": "Qu'est-ce que Human Connection?",
"hello": "Bonjour"
},
"profile": {
"name": "Mon profil",
"memberSince": "Membre depuis"
},
"settings": {
"name": "Paramètres",
"data": {
"name": "Vos données"
},
"security": {
"name": "Sécurité"
},
"invites": {
"name": "Invite"
},
"download": {
"name": "Télécharger les données"
},
"delete": {
"name": "Supprimer un compte"
},
"organizations": {
"name": "Mes organisations"
},
"languages": {
"name": "Langues"
}
},
"admin": {
"name": "Admin",
"dashboard": {
"name": "Tableau de bord",
"users": "Utilisateurs",
"posts": "Postes",
"comments": "Commentaires",
"notifications": "Notifications",
"organizations": "Organisations",
"projects": "Projets",
"invites": "Invite",
"follows": "Suit"
},
"organizations": {
"name": "Organisations"
},
"users": {
"name": "Utilisateurs"
},
"pages": {
"name": "Pages"
},
"notifications": {
"name": "Notifications"
},
"categories": {
"name": "Catégories",
"categoryName": "Nom",
"postCount": "Postes"
},
"tags": {
"name": "Étiquettes",
"tagCountUnique": "Utilisateurs",
"tagCount": "Postes"
},
"settings": {
"name": "Paramètres"
}
},
"quotes": {
"african": {
"quote": "Beaucoup de petites personnes dans beaucoup de petits endroits font beaucoup de petites choses, qui peuvent changer la face du monde.",
"author": "Proverbe africain"
}
}
}

7
locales/it.json Normal file
View File

@ -0,0 +1,7 @@
{
"quotes": {
"african": {
"author": "Proverbio africano"
}
}
}

56
locales/nl.json Normal file
View File

@ -0,0 +1,56 @@
{
"login": {
"copy": "Als u al een mini-aansluiting account heeft, log dan hier in.",
"login": "Inloggen",
"logout": "Uitloggen",
"email": "Uw E-mail",
"password": "Uw Wachtwoord",
"moreInfo": "Wat is Human Connection?",
"hello": "Hallo"
},
"profile": {
"follow": "Volgen",
"followers": "Volgelingen",
"following": "Volgt"
},
"settings": {
"delete": {
"name": "Account verwijderen"
},
"organizations": {
"name": "Mijn Organisaties"
},
"languages": {
"name": "Talen"
}
},
"admin": {
"dashboard": {
"name": "Dashboard",
"notifications": "Meldingen",
"organizations": "Organisaties",
"projects": "Projecten"
},
"organizations": {
"name": "Organisaties"
},
"notifications": {
"name": "Meldingen"
},
"categories": {
"name": "Categorieën",
"categoryName": "Naam"
},
"tags": {
"tagCount": "Berichten"
},
"settings": {
"name": "Instellingen"
}
},
"quotes": {
"african": {
"author": "Afrikaans spreekwoord"
}
}
}

7
locales/pt.json Normal file
View File

@ -0,0 +1,7 @@
{
"quotes": {
"african": {
"author": "Provérbio Africano"
}
}
}

View File

@ -62,7 +62,7 @@ export default ({ app, req, cookie, store }) => {
}
}
const availableLocales = ['de', 'en']
const availableLocales = ['de', 'en', 'nl', 'fr', 'pt', 'es']
const locale = availableLocales.indexOf(userLocale) >= 0 ? userLocale : 'en'
if (locale !== 'en') {

View File

@ -1,6 +1,6 @@
import Vue from 'vue'
import { enUS, de } from 'date-fns/locale'
import { enUS, de, nl, fr, es, pt } from 'date-fns/locale'
import format from 'date-fns/format'
import formatRelative from 'date-fns/formatRelative'
import addSeconds from 'date-fns/addSeconds'
@ -9,7 +9,11 @@ import accounting from 'accounting'
export default ({ app }) => {
const locales = {
en: enUS,
de: de
de: de,
nl: nl,
fr: fr,
es: es,
pt: pt
}
app.$filters = Object.assign(app.$filters || {}, {
date: (value, fmt = 'dd. MMM yyyy') => {