Adding arabic translation

This commit is contained in:
ButterflyOfFire 2018-07-04 16:31:29 +00:00 committed by Eliot Berriot
parent 663c6238dc
commit 6ccfeaa066
5 changed files with 2558 additions and 16 deletions

View File

@ -4,7 +4,8 @@ variables:
IMAGE_LATEST: $IMAGE_NAME:latest IMAGE_LATEST: $IMAGE_NAME:latest
PIP_CACHE_DIR: "$CI_PROJECT_DIR/pip-cache" PIP_CACHE_DIR: "$CI_PROJECT_DIR/pip-cache"
PYTHONDONTWRITEBYTECODE: "true" PYTHONDONTWRITEBYTECODE: "true"
REVIEW_DOMAIN: preview.funkwhale.audio
REVIEW_INSTANCE_URL: https://demo.funkwhale.audio
stages: stages:
- review - review
@ -28,16 +29,16 @@ review_front:
# this is to ensure we don't have any errors in the output, # this is to ensure we don't have any errors in the output,
# cf https://code.eliotberriot.com/funkwhale/funkwhale/issues/169 # cf https://code.eliotberriot.com/funkwhale/funkwhale/issues/169
- INSTANCE_URL=$REVIEW_INSTANCE_URL yarn run build | tee /dev/stderr | (! grep -i 'ERROR in') - INSTANCE_URL=$REVIEW_INSTANCE_URL yarn run build | tee /dev/stderr | (! grep -i 'ERROR in')
- mkdir -p /static/front/$CI_BUILD_REF_SLUG - mkdir -p /static/front/$CI_PROJECT_PATH_SLUG-$CI_BUILD_REF_SLUG
- cp -r dist/* /static/front/$CI_BUILD_REF_SLUG - cp -r dist/* /static/front/$CI_PROJECT_PATH_SLUG-$CI_BUILD_REF_SLUG
cache: cache:
key: "$CI_PROJECT_ID__front_dependencies" key: "funkwhale__front_dependencies"
paths: paths:
- front/node_modules - front/node_modules
- front/yarn.lock - front/yarn.lock
environment: environment:
name: review/front-$CI_BUILD_REF_NAME name: review/front/$CI_PROJECT_PATH_SLUG-$CI_BUILD_REF_SLUG
url: http://front-$CI_BUILD_REF_SLUG.$REVIEW_DOMAIN url: http://front-$CI_PROJECT_PATH_SLUG-$CI_BUILD_REF_SLUG.$REVIEW_DOMAIN
on_stop: stop_front_review on_stop: stop_front_review
only: only:
- branches - branches
@ -47,14 +48,14 @@ review_front:
stop_front_review: stop_front_review:
stage: review stage: review
script: script:
- rm -rf /static/front/$CI_BUILD_REF_SLUG/ - rm -rf /static/front/$CI_PROJECT_PATH_SLUG-$CI_BUILD_REF_SLUG/
variables: variables:
GIT_STRATEGY: none GIT_STRATEGY: none
when: manual when: manual
only: only:
- branches - branches
environment: environment:
name: review/front-$CI_BUILD_REF_NAME name: review/front/$CI_PROJECT_PATH_SLUG-$CI_BUILD_REF_SLUG
action: stop action: stop
tags: tags:
- funkwhale-review - funkwhale-review
@ -78,11 +79,11 @@ review_docs:
- "$PIP_CACHE_DIR" - "$PIP_CACHE_DIR"
script: script:
- ./build_docs.sh - ./build_docs.sh
- mkdir -p /static/docs/$CI_BUILD_REF_SLUG - mkdir -p /static/docs/$CI_PROJECT_PATH_SLUG-$CI_BUILD_REF_SLUG
- cp -r $CI_PROJECT_DIR/public/* /static/docs/$CI_BUILD_REF_SLUG - cp -r $CI_PROJECT_DIR/public/* /static/docs/$CI_PROJECT_PATH_SLUG-$CI_BUILD_REF_SLUG
environment: environment:
name: review/docs-$CI_BUILD_REF_NAME name: review/docs/$CI_PROJECT_PATH_SLUG-$CI_BUILD_REF_SLUG
url: http://docs-$CI_BUILD_REF_SLUG.$REVIEW_DOMAIN url: http://docs-$CI_PROJECT_PATH_SLUG-$CI_BUILD_REF_SLUG.$REVIEW_DOMAIN
on_stop: stop_docs_review on_stop: stop_docs_review
only: only:
- branches - branches
@ -92,14 +93,14 @@ review_docs:
stop_docs_review: stop_docs_review:
stage: review stage: review
script: script:
- rm -rf /static/docs/$CI_BUILD_REF_SLUG/ - rm -rf /static/docs/$CI_PROJECT_PATH_SLUG-$CI_BUILD_REF_SLUG/
variables: variables:
GIT_STRATEGY: none GIT_STRATEGY: none
when: manual when: manual
only: only:
- branches - branches
environment: environment:
name: review/docs-$CI_BUILD_REF_NAME name: review/docs/$CI_PROJECT_PATH_SLUG-$CI_BUILD_REF_SLUG
action: stop action: stop
tags: tags:
- funkwhale-review - funkwhale-review
@ -168,7 +169,7 @@ test_front:
- yarn install - yarn install
- yarn run unit - yarn run unit
cache: cache:
key: "$CI_PROJECT_ID__front_dependencies" key: "funkwhale__front_dependencies"
paths: paths:
- front/node_modules - front/node_modules
- front/yarn.lock - front/yarn.lock
@ -195,7 +196,7 @@ build_front:
- yarn run build | tee /dev/stderr | (! grep -i 'ERROR in') - yarn run build | tee /dev/stderr | (! grep -i 'ERROR in')
- chmod -R 750 dist - chmod -R 750 dist
cache: cache:
key: "$CI_PROJECT_ID__front_dependencies" key: "funkwhale__front_dependencies"
paths: paths:
- front/node_modules - front/node_modules
- front/yarn.lock - front/yarn.lock

View File

@ -0,0 +1 @@
Arabic translation (!302)

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,10 @@
/* eslint-disable */ /* eslint-disable */
export default { export default {
"locales": [ "locales": [
{
"code": "ar",
"label": "العربية"
},
{ {
"code": "en_US", "code": "en_US",
"label": "English (United-States)" "label": "English (United-States)"

View File

@ -32,6 +32,11 @@
name = "Documentation" name = "Documentation"
showcontent = true showcontent = true
[[tool.towncrier.type]]
directory = "i18n"
name = "i18n"
showcontent = true
[[tool.towncrier.type]] [[tool.towncrier.type]]
directory = "misc" directory = "misc"
name = "Other" name = "Other"