Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Framasoft
PeerTube
PeerTube
Commits
10e63b68
Verified
Commit
10e63b68
authored
Jun 28, 2018
by
Chocobozzz
Browse files
Add Basque and Catalan languages
parent
e0452b67
Changes
2
Hide whitespace changes
Inline
Side-by-side
scripts/build/client.sh
View file @
10e63b68
#!/bin/sh
#!/bin/
ba
sh
set
-eu
...
...
@@ -11,9 +11,9 @@ npm run ng build -- --output-path "dist/$defaultLanguage/" --deploy-url "/client
mv
"./dist/
$defaultLanguage
/assets"
"./dist"
# Supported languages
languages
=
"fr_FR"
languages
=
(
"fr_FR"
"eu_ES"
"ca_ES"
)
for
lang
in
"
$languages
"
;
do
for
lang
in
"
$
{
languages
[@]
}
"
;
do
npm run ng build
--
--prod
--i18n-file
"./src/locale/target/angular_
$lang
.xml"
--i18n-format
xlf
--i18n-locale
"
$lang
"
\
--output-path
"dist/
$lang
/"
--deploy-url
"/client/
$lang
/"
...
...
shared/models/i18n/i18n.ts
View file @
10e63b68
...
...
@@ -2,12 +2,18 @@ export const LOCALE_FILES = [ 'player', 'server' ]
export
const
I18N_LOCALES
=
{
'
en-US
'
:
'
English
'
,
'
fr-FR
'
:
'
Français
'
'
fr-FR
'
:
'
Français
'
,
'
eu-ES
'
:
'
euskara
'
,
'
ca-ES
'
:
'
català
'
// 'pl-PL': 'polski'
}
const
I18N_LOCALE_ALIAS
=
{
'
en
'
:
'
en-US
'
,
'
fr
'
:
'
fr-FR
'
'
fr
'
:
'
fr-FR
'
,
'
eu
'
:
'
eu-ES
'
,
'
ca
'
:
'
ca-ES
'
// 'pl': 'pl-PL'
}
export
const
POSSIBLE_LOCALES
=
Object
.
keys
(
I18N_LOCALES
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment