Skip to content

Commit

Permalink
refactor: switch language handling to i18next (#1421)
Browse files Browse the repository at this point in the history
Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>
Co-authored-by: Antonio Román <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jeroen Claassens <[email protected]>
Co-authored-by: Vlad Frangu <[email protected]>
Co-authored-by: Jeroen Claassens <[email protected]>
Co-authored-by: Skyra <[email protected]>
Co-authored-by: Soumil07 <[email protected]>
  • Loading branch information
9 people authored Jan 12, 2021
1 parent 3ac9372 commit 2c5c015
Show file tree
Hide file tree
Showing 1,020 changed files with 66,644 additions and 18,686 deletions.
102 changes: 21 additions & 81 deletions .all-contributorsrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
"projectOwner": "skyra-project",
"repoType": "github",
"repoHost": "https://github.com",
"files": [
"README.md"
],
"files": ["README.md"],
"imageSize": 100,
"commit": true,
"commitConvention": "angular",
Expand Down Expand Up @@ -63,198 +61,140 @@
"name": "Jacz",
"avatar_url": "https://avatars3.githubusercontent.com/u/23615291?v=4",
"profile": "https://jaczaus.me/",
"contributions": [
"code"
]
"contributions": ["code"]
},
{
"login": "vladfrangu",
"name": "Vlad Frangu",
"avatar_url": "https://avatars3.githubusercontent.com/u/17960496?v=4",
"profile": "https://github.com/vladfrangu",
"contributions": [
"code",
"doc",
"bug",
"review",
"userTesting"
]
"contributions": ["code", "doc", "bug", "review", "userTesting"]
},
{
"login": "Skillz4Killz",
"name": "Skillz4Killz",
"avatar_url": "https://avatars3.githubusercontent.com/u/23035000?v=4",
"profile": "https://github.com/Skillz4Killz",
"contributions": [
"code"
]
"contributions": ["code"]
},
{
"login": "cfanoulis",
"name": "Charalampos Fanoulis",
"avatar_url": "https://avatars3.githubusercontent.com/u/38255093?v=4",
"profile": "https://github.com/cfanoulis",
"contributions": [
"code",
"translation",
"ideas",
"projectManagement",
"maintenance"
]
"contributions": ["code", "translation", "ideas", "projectManagement", "maintenance"]
},
{
"login": "QuantumlyTangled",
"name": "Nejc Drobnic",
"avatar_url": "https://avatars1.githubusercontent.com/u/7919610?v=4",
"profile": "https://quantumlytangled.com/",
"contributions": [
"code",
"translation",
"ideas",
"doc",
"infra"
]
"contributions": ["code", "translation", "ideas", "doc", "infra"]
},
{
"login": "tech6hutch",
"name": "Hutch",
"avatar_url": "https://avatars1.githubusercontent.com/u/25398066?v=4",
"profile": "http://moorewebcode.com/",
"contributions": [
"code"
]
"contributions": ["code"]
},
{
"login": "PyroTechniac",
"name": "Gryffon Bellish",
"avatar_url": "https://avatars2.githubusercontent.com/u/39341355?v=4",
"profile": "https://github.com/PyroTechniac",
"contributions": [
"code"
]
"contributions": ["code"]
},
{
"login": "Tylertron1998",
"name": "Tyler Davis",
"avatar_url": "https://avatars0.githubusercontent.com/u/34944514?v=4",
"profile": "https://github.com/Tylertron1998",
"contributions": [
"doc"
]
"contributions": ["doc"]
},
{
"login": "KunoichiZ",
"name": "Kaoru",
"avatar_url": "https://avatars1.githubusercontent.com/u/19984244?v=4",
"profile": "https://github.com/KunoichiZ",
"contributions": [
"code"
]
"contributions": ["code"]
},
{
"login": "superusercode",
"name": "Code.",
"avatar_url": "https://avatars0.githubusercontent.com/u/60588434?v=4",
"profile": "https://github.com/superusercode",
"contributions": [
"code"
]
"contributions": ["code"]
},
{
"login": "YorkAARGH",
"name": "York",
"avatar_url": "https://avatars1.githubusercontent.com/u/20838878?v=4",
"profile": "https://github.com/YorkAARGH",
"contributions": [
"code"
]
"contributions": ["code"]
},
{
"login": "ImmortalSnake",
"name": "ImmortalSnake",
"avatar_url": "https://avatars0.githubusercontent.com/u/47276574?v=4",
"profile": "https://github.com/ImmortalSnake",
"contributions": [
"code"
]
"contributions": ["code"]
},
{
"login": "NM-EEA-Y",
"name": "Skyra",
"avatar_url": "https://avatars0.githubusercontent.com/u/61647701?v=4",
"profile": "https://skyra.pw/",
"contributions": [
"infra"
]
"contributions": ["infra"]
},
{
"login": "gc",
"name": "GC",
"avatar_url": "https://avatars2.githubusercontent.com/u/30398469?v=4",
"profile": "https://github.com/gc",
"contributions": [
"code"
]
"contributions": ["code"]
},
{
"login": "Rexogamer",
"name": "Ed L",
"avatar_url": "https://avatars0.githubusercontent.com/u/42586271?v=4",
"profile": "https://github.com/Rexogamer",
"contributions": [
"translation"
]
"contributions": ["translation"]
},
{
"login": "Soumil07",
"name": "Soumil07",
"avatar_url": "https://avatars0.githubusercontent.com/u/29275227?v=4",
"profile": "https://github.com/Soumil07",
"contributions": [
"code",
"translation",
"review",
"platform",
"maintenance",
"bug"
]
"contributions": ["code", "translation", "review", "platform", "maintenance", "bug"]
},
{
"login": "AdityaTD",
"name": "Aditya N. Tripathi",
"avatar_url": "https://avatars0.githubusercontent.com/u/9266227?v=4",
"profile": "http://www.adityatd.me/",
"contributions": [
"code",
"bug"
]
"contributions": ["code", "bug"]
},
{
"login": "dependabot-preview[bot]",
"name": "dependabot-preview[bot]",
"avatar_url": "https://avatars3.githubusercontent.com/in/2141?v=4",
"profile": "https://github.com/apps/dependabot-preview",
"contributions": [
"maintenance"
]
"contributions": ["maintenance"]
},
{
"login": "dependabot[bot]",
"name": "dependabot[bot]",
"avatar_url": "https://avatars0.githubusercontent.com/in/29110?v=4",
"profile": "https://github.com/apps/dependabot",
"contributions": [
"maintenance"
]
"contributions": ["maintenance"]
},
{
"login": "depfu[bot]",
"name": "depfu[bot]",
"avatar_url": "https://avatars3.githubusercontent.com/in/715?v=4",
"profile": "https://github.com/apps/depfu",
"contributions": [
"maintenance"
]
"contributions": ["maintenance"]
}
],
"contributorsPerLine": 7
Expand Down
1 change: 1 addition & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "@sapphire",
"rules": {
"@typescript-eslint/no-base-to-string": 0,
"@typescript-eslint/no-throw-literal": 0,
"@typescript-eslint/restrict-plus-operands": 0,
"@typescript-eslint/naming-convention": 0
Expand Down
15 changes: 0 additions & 15 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,3 @@
/.yarnclean @favna
/jest.config.js @favna
/pm2.ecosystem.yml @favna

# Just Quantum
/src/commands/GameIntegration/ffxiv.ts @quantumlytangled
/src/commands/Twitch/ @quantumlytangled
/src/events/analytics/ @quantumlytangled
/src/events/twitch/ @quantumlytangled
/src/lib/orm/migrations/1594757329224-V13_MigrateAnalytics.ts @quantumlytangled
/src/lib/types/definitions/Twitch.d.ts @quantumlytangled
/src/lib/util/GameIntegration/FFXIVTypings.d.ts @quantumlytangled
/src/lib/util/GameIntegration/FFXIVUtils.ts @quantumlytangled
/src/lib/util/Notifications/ @quantumlytangled
/src/lib/util/Tracking/ @quantumlytangled
/src/monitors/analytics/ @quantumlytangled
/src/routes/twitch/twitchStreamChange.ts @quantumlytangled
/src/tasks/syncResourceAnalytics.ts @quantumlytangled
36 changes: 36 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,44 @@ on:
- cron: '0 8 * * 1'

jobs:
pre_ci:
name: Prepare CI environment
runs-on: ubuntu-latest
steps:
- name: Checkout Project
uses: actions/checkout@v2
with:
# We need to fetch with a depth of 2 for pull_request.
fetch-depth: 2

# If this workflow was triggered by a push then resolve the commit message from HEAD
# It is stored in output steps, to be referenced with ${{ steps.push_get_commit_message.outputs.push_commit_message }}
- name: '[Push] Get commit message'
if: github.event_name == 'push'
id: push_get_commit_message
run: echo ::set-output name=push_commit_message::$(git log --format=%B -n 1 HEAD)

# If this workflow was triggered by a pull request (open or synchronize!) then resolve the commit message from HEAD^2
# It is stored in output steps, to be referenced with ${{ steps.pr_get_commit_message.outputs.pr_commit_message }}
- name: '[Pull Request] Get commit message'
if: github.event_name == 'pull_request'
id: pr_get_commit_message
run: echo ::set-output name=pr_commit_message::$(git log --format=%B -n 1 HEAD^2)

# Finally we want to make the commit message available to other jobs. This can be done with job-level outputs
# However as we do not know whether the commit message was set in Push or Pull Request event we need to do some
# bash magic to resolve the one or the other
#
# For **Pull Request** events this will resolve to something like "$( [ -z "commit message pr" ] && echo "" || echo "commit message pr" )" which then resolves to just "commit message pr"
#
# For **Push** events this will resolve to something like "$( [ -z "" ] && echo "commit message push" || echo "" )" which then resolves to just "commit message push"
outputs:
commit_message: $( [ -z "${{ steps.pr_get_commit_message.outputs.pr_commit_message }}" ] && echo "${{ steps.push_get_commit_message.outputs.push_commit_message }}" || echo "${{ steps.pr_get_commit_message.outputs.pr_commit_message }}" )

CodeQL:
runs-on: ubuntu-latest
if: "!contains(needs.pre_ci.outputs.commit_message, '[skip ci]')"
needs: pre_ci

steps:
- name: Checkout repository
Expand Down
43 changes: 40 additions & 3 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,45 @@ on:
pull_request:

jobs:
pre_ci:
name: Prepare CI environment
runs-on: ubuntu-latest
steps:
- name: Checkout Project
uses: actions/checkout@v2
with:
# We need to fetch with a depth of 2 for pull_request.
fetch-depth: 2

# If this workflow was triggered by a push then resolve the commit message from HEAD
# It is stored in output steps, to be referenced with ${{ steps.push_get_commit_message.outputs.push_commit_message }}
- name: '[Push] Get commit message'
if: github.event_name == 'push'
id: push_get_commit_message
run: echo ::set-output name=push_commit_message::$(git log --format=%B -n 1 HEAD)

# If this workflow was triggered by a pull request (open or synchronize!) then resolve the commit message from HEAD^2
# It is stored in output steps, to be referenced with ${{ steps.pr_get_commit_message.outputs.pr_commit_message }}
- name: '[Pull Request] Get commit message'
if: github.event_name == 'pull_request'
id: pr_get_commit_message
run: echo ::set-output name=pr_commit_message::$(git log --format=%B -n 1 HEAD^2)

# Finally we want to make the commit message available to other jobs. This can be done with job-level outputs
# However as we do not know whether the commit message was set in Push or Pull Request event we need to do some
# bash magic to resolve the one or the other
#
# For **Pull Request** events this will resolve to something like "$( [ -z "commit message pr" ] && echo "" || echo "commit message pr" )" which then resolves to just "commit message pr"
#
# For **Push** events this will resolve to something like "$( [ -z "" ] && echo "commit message push" || echo "" )" which then resolves to just "commit message push"
outputs:
commit_message: $( [ -z "${{ steps.pr_get_commit_message.outputs.pr_commit_message }}" ] && echo "${{ steps.push_get_commit_message.outputs.push_commit_message }}" || echo "${{ steps.pr_get_commit_message.outputs.pr_commit_message }}" )

Linting:
name: Linting
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[skip ci]')"
if: "!contains(needs.pre_ci.outputs.commit_message, '[skip ci]')"
needs: pre_ci
steps:
- name: Checkout Project
uses: actions/checkout@v2
Expand All @@ -31,7 +66,8 @@ jobs:
Testing:
name: Unit Tests
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[skip ci]')"
if: "!contains(needs.pre_ci.outputs.commit_message, '[skip ci]')"
needs: pre_ci
steps:
- name: Checkout Project
uses: actions/checkout@v2
Expand Down Expand Up @@ -66,7 +102,8 @@ jobs:
Building:
name: Compile source code
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[skip ci]')"
if: "!contains(needs.pre_ci.outputs.commit_message, '[skip ci]')"
needs: pre_ci
steps:
- name: Checkout Project
uses: actions/checkout@v2
Expand Down
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
src/languages/**/*.json
20 changes: 0 additions & 20 deletions .prettierrc

This file was deleted.

Loading

0 comments on commit 2c5c015

Please sign in to comment.