Add i18n translations. (#381)

* Initial prototype.

* Add support for i18n in more places.
This commit is contained in:
Kavin 2021-08-25 22:00:21 +05:30 committed by GitHub
parent 45f132e2b4
commit 4ae77badd8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 169 additions and 22 deletions

16
src/locales/en.json Normal file
View file

@ -0,0 +1,16 @@
{
"titles": {
"trending": "Trending",
"login": "Login",
"register": "Register",
"feed": "Feed",
"preferences": "Preferences"
},
"player": {
"watch_on": "Watch on"
},
"actions": {
"subscribe": "Subscribe",
"unsubscribe": "Unsubscribe"
}
}

9
src/locales/fr.json Normal file
View file

@ -0,0 +1,9 @@
{
"titles": {
"trending": "Tendances",
"login": "Connexion",
"register": "S'inscrire",
"feed": "Abonnements",
"preferences": "Préférences"
}
}