Consolidate localazy config
and remove desktop localazy workflows Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
@@ -1,14 +0,0 @@
|
|||||||
name: Localazy Download
|
|
||||||
on:
|
|
||||||
workflow_dispatch: {}
|
|
||||||
schedule:
|
|
||||||
- cron: "0 6 * * 1,3,5" # Every Monday, Wednesday and Friday at 6am UTC
|
|
||||||
permissions:
|
|
||||||
pull-requests: write # needed to auto-approve PRs
|
|
||||||
jobs:
|
|
||||||
download:
|
|
||||||
uses: matrix-org/matrix-web-i18n/.github/workflows/localazy_download.yaml@6eda3835118f3bc3fb658a1a3c20b7da9d16ae42
|
|
||||||
with:
|
|
||||||
packageManager: pnpm
|
|
||||||
secrets:
|
|
||||||
ELEMENT_BOT_TOKEN: ${{ secrets.ELEMENT_BOT_TOKEN }}
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
name: Localazy Upload
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: [develop]
|
|
||||||
paths:
|
|
||||||
- "src/i18n/strings/en_EN.json"
|
|
||||||
permissions: {} # No permissions needed
|
|
||||||
jobs:
|
|
||||||
upload:
|
|
||||||
uses: matrix-org/matrix-web-i18n/.github/workflows/localazy_upload.yaml@6eda3835118f3bc3fb658a1a3c20b7da9d16ae42
|
|
||||||
secrets:
|
|
||||||
LOCALAZY_WRITE_KEY: ${{ secrets.LOCALAZY_WRITE_KEY }}
|
|
||||||
@@ -1,37 +0,0 @@
|
|||||||
{
|
|
||||||
"readKey": "a7688614897667993891-866e2615b0a22e6ccef56aea9b10e815efa3e1296752a7a30bd9925f1a8f33e7",
|
|
||||||
|
|
||||||
"upload": {
|
|
||||||
"type": "json",
|
|
||||||
"keySeparator": "|",
|
|
||||||
"deprecate": "file",
|
|
||||||
"features": ["plural_object", "filter_untranslated"],
|
|
||||||
"files": [
|
|
||||||
{
|
|
||||||
"pattern": "src/i18n/strings/en_EN.json",
|
|
||||||
"file": "element-desktop.json",
|
|
||||||
"lang": "inherited"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"group": "existing",
|
|
||||||
"pattern": "src/i18n/strings/*.json",
|
|
||||||
"file": "element-desktop.json",
|
|
||||||
"excludes": ["src/i18n/strings/en_EN.json"],
|
|
||||||
"lang": "${autodetectLang}"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
|
|
||||||
"download": {
|
|
||||||
"files": [
|
|
||||||
{
|
|
||||||
"conditions": "equals: ${file}, element-desktop.json",
|
|
||||||
"output": "src/i18n/strings/${langLsrUnderscore}.json"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"includeSourceLang": "${includeSourceLang|false}",
|
|
||||||
"langAliases": {
|
|
||||||
"en": "en-EN"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -19,6 +19,18 @@
|
|||||||
"excludes": ["apps/web/src/i18n/strings/en_EN.json"],
|
"excludes": ["apps/web/src/i18n/strings/en_EN.json"],
|
||||||
"lang": "${autodetectLang}"
|
"lang": "${autodetectLang}"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"pattern": "apps/desktop/src/i18n/strings/en_EN.json",
|
||||||
|
"file": "element-desktop.json",
|
||||||
|
"lang": "inherited"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"group": "existing",
|
||||||
|
"pattern": "apps/desktop/src/i18n/strings/*.json",
|
||||||
|
"file": "element-desktop.json",
|
||||||
|
"excludes": ["apps/desktop/src/i18n/strings/en_EN.json"],
|
||||||
|
"lang": "${autodetectLang}"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"pattern": "packages/shared-components/src/i18n/strings/en_EN.json",
|
"pattern": "packages/shared-components/src/i18n/strings/en_EN.json",
|
||||||
"file": "shared-components.json",
|
"file": "shared-components.json",
|
||||||
@@ -40,6 +52,10 @@
|
|||||||
"conditions": "equals: ${file}, element-web.json",
|
"conditions": "equals: ${file}, element-web.json",
|
||||||
"output": "apps/web/src/i18n/strings/${langLsrUnderscore}.json"
|
"output": "apps/web/src/i18n/strings/${langLsrUnderscore}.json"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"conditions": "equals: ${file}, element-desktop.json",
|
||||||
|
"output": "apps/desktop/src/i18n/strings/${langLsrUnderscore}.json"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"conditions": "equals: ${file}, shared-components.json",
|
"conditions": "equals: ${file}, shared-components.json",
|
||||||
"output": "packages/shared-components/src/i18n/strings/${langLsrUnderscore}.json"
|
"output": "packages/shared-components/src/i18n/strings/${langLsrUnderscore}.json"
|
||||||
|
|||||||
Reference in New Issue
Block a user