Skip to content

Commit b5166c6

Browse files
authored
fix: arabic and german translations (#245)
* arabic and german translations * pretty prettier * really prettier
1 parent f0efe18 commit b5166c6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+48746
-47330
lines changed

.eslintrc

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
2-
"extends": "@rpidanny/eslint-config-typescript",
3-
"rules": {
4-
"no-unused-vars": "off",
5-
"simple-import-sort/imports": "off",
6-
"arrow-parens": "off",
7-
"camelcase": "off",
8-
"no-throw-literal": "error"
9-
}
2+
"extends": "@rpidanny/eslint-config-typescript",
3+
"rules": {
4+
"no-unused-vars": "off",
5+
"simple-import-sort/imports": "off",
6+
"arrow-parens": "off",
7+
"camelcase": "off",
8+
"no-throw-literal": "error"
9+
}
1010
}

.github/dependabot.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
version: 2
22
updates:
3-
# Enable version updates for npm
4-
- package-ecosystem: 'npm'
5-
# Look for `package.json` and `lock` files in the `root` directory
6-
directory: '/'
7-
# Check the npm registry for updates every day (weekdays)
8-
schedule:
9-
interval: 'daily'
10-
rebase-strategy: "auto"
11-
labels:
12-
- "security"
13-
- "dependencies"
3+
# Enable version updates for npm
4+
- package-ecosystem: "npm"
5+
# Look for `package.json` and `lock` files in the `root` directory
6+
directory: "/"
7+
# Check the npm registry for updates every day (weekdays)
8+
schedule:
9+
interval: "daily"
10+
rebase-strategy: "auto"
11+
labels:
12+
- "security"
13+
- "dependencies"

.github/workflows/ci.yml

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
11
name: CI
22

33
on:
4-
pull_request:
5-
branches:
6-
- '*'
4+
pull_request:
5+
branches:
6+
- "*"
77

88
jobs:
9-
build-and-test:
10-
name: Build and Test
11-
runs-on: ubuntu-latest
9+
build-and-test:
10+
name: Build and Test
11+
runs-on: ubuntu-latest
1212

13-
steps:
14-
- name: Checkout
15-
uses: actions/checkout@v3
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v3
1616

17-
- uses: actions/setup-node@v3
18-
with:
19-
node-version: '16.x'
20-
registry-url: 'https://registry.npmjs.org'
17+
- uses: actions/setup-node@v3
18+
with:
19+
node-version: "16.x"
20+
registry-url: "https://registry.npmjs.org"
2121

22-
- run: npm ci
23-
- run: npm run lint
24-
- run: npm test
25-
- run: npm run build --if-present
22+
- run: npm ci
23+
- run: npm run lint
24+
- run: npm test
25+
- run: npm run build --if-present
2626

27-
- name: Code Coverage
28-
run: curl -s https://codecov.io/bash | bash
29-
env:
30-
CODECOV_TOKEN: ${{secrets.CODECOV_TOKEN}}
27+
- name: Code Coverage
28+
run: curl -s https://codecov.io/bash | bash
29+
env:
30+
CODECOV_TOKEN: ${{secrets.CODECOV_TOKEN}}

.github/workflows/publish.yml

Lines changed: 56 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -1,66 +1,66 @@
11
name: Release
22

33
on:
4-
push:
5-
branches:
6-
- 'main'
7-
- 'alpha'
8-
- 'beta'
9-
- '*.x'
10-
- '*.*.x'
4+
push:
5+
branches:
6+
- "main"
7+
- "alpha"
8+
- "beta"
9+
- "*.x"
10+
- "*.*.x"
1111

1212
jobs:
13-
release:
14-
name: Release
15-
runs-on: ubuntu-latest
16-
steps:
17-
- name: Checkout
18-
uses: actions/checkout@v3
13+
release:
14+
name: Release
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v3
1919

20-
- uses: actions/setup-node@v3
21-
with:
22-
node-version: '18.x'
23-
registry-url: 'https://registry.npmjs.org'
20+
- uses: actions/setup-node@v3
21+
with:
22+
node-version: "18.x"
23+
registry-url: "https://registry.npmjs.org"
2424

25-
- run: npm ci
26-
- run: npm run lint
27-
- run: npm run semantic-release-dry-run
28-
env:
29-
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
30-
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
31-
CI: true
32-
# Grab the tag number by running semantic-release in dry mode and put the result in release_tag env variable
33-
- run: echo "release_tag=$(npm run semantic-release-dry-run | grep -Po 'The next release version is \K([\w.-]*)')" >> $GITHUB_ENV
34-
env:
35-
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
36-
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
37-
CI: true
38-
- run: npm run test
39-
#- run: sed -i 's|""|"https://cdn.jsdelivr.net/npm/@workadventure/scripting-api-extra@${{ env.release_tag }}/dist"|g' src/Features/default_assets_url.ts
40-
- run: sed -i 's|""|"https://unpkg.com/@workadventure/scripting-api-extra@${{ env.release_tag }}/dist"|g' src/Features/default_assets_url.ts
41-
- run: sed -i 's|""|"https://admin.workadventu.re/html"|g' src/Features/workadventure_assets_url.ts
42-
- run: npm run build --if-present
25+
- run: npm ci
26+
- run: npm run lint
27+
- run: npm run semantic-release-dry-run
28+
env:
29+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
30+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
31+
CI: true
32+
# Grab the tag number by running semantic-release in dry mode and put the result in release_tag env variable
33+
- run: echo "release_tag=$(npm run semantic-release-dry-run | grep -Po 'The next release version is \K([\w.-]*)')" >> $GITHUB_ENV
34+
env:
35+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
36+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
37+
CI: true
38+
- run: npm run test
39+
#- run: sed -i 's|""|"https://cdn.jsdelivr.net/npm/@workadventure/scripting-api-extra@${{ env.release_tag }}/dist"|g' src/Features/default_assets_url.ts
40+
- run: sed -i 's|""|"https://unpkg.com/@workadventure/scripting-api-extra@${{ env.release_tag }}/dist"|g' src/Features/default_assets_url.ts
41+
- run: sed -i 's|""|"https://admin.workadventu.re/html"|g' src/Features/workadventure_assets_url.ts
42+
- run: npm run build --if-present
4343

44-
# Deployment on Github Pages
45-
- name: "Deploy Github Pages"
46-
uses: JamesIves/github-pages-deploy-action@v4
47-
if: github.ref == 'refs/heads/main'
48-
with:
49-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
50-
BRANCH: gh-pages # <- Branche sur laquelle seront commités les fichiers
51-
FOLDER: dist/ # <- Dossier contenant notre documentation générée
52-
BASE_BRANCH: main
44+
# Deployment on Github Pages
45+
- name: "Deploy Github Pages"
46+
uses: JamesIves/github-pages-deploy-action@v4
47+
if: github.ref == 'refs/heads/main'
48+
with:
49+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
50+
BRANCH: gh-pages # <- Branche sur laquelle seront commités les fichiers
51+
FOLDER: dist/ # <- Dossier contenant notre documentation générée
52+
BASE_BRANCH: main
5353

54-
# Code coverage
55-
#- name: "Code coverage"
56-
# run: curl -s https://codecov.io/bash | bash
57-
# env:
58-
# CODECOV_TOKEN: ${{secrets.CODECOV_TOKEN}}
54+
# Code coverage
55+
#- name: "Code coverage"
56+
# run: curl -s https://codecov.io/bash | bash
57+
# env:
58+
# CODECOV_TOKEN: ${{secrets.CODECOV_TOKEN}}
5959

60-
# Deployment on npm
61-
- name: "Deploy NPM"
62-
run: npm run semantic-release
63-
env:
64-
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
65-
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
66-
CI: true
60+
# Deployment on npm
61+
- name: "Deploy NPM"
62+
run: npm run semantic-release
63+
env:
64+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
65+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
66+
CI: true

.prettierrc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"trailingComma": "all",
3-
"singleQuote": false,
4-
"printWidth": 100,
5-
"tabWidth": 4
2+
"trailingComma": "all",
3+
"singleQuote": false,
4+
"printWidth": 100,
5+
"tabWidth": 4
66
}

0 commit comments

Comments
 (0)