mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-11-04 22:52:23 +08:00
ci: regenerate the i18n types and check them for drift (#8494)
This commit is contained in:
@@ -4,6 +4,7 @@ on:
|
||||
pull_request:
|
||||
paths:
|
||||
- "src/**"
|
||||
- "scripts/**"
|
||||
- "**/*.js"
|
||||
- "**/*.ts"
|
||||
- "**/*.tsx"
|
||||
@@ -41,6 +42,14 @@ jobs:
|
||||
|
||||
- run: pnpm install --frozen-lockfile
|
||||
|
||||
- name: Check generated i18n types are up to date
|
||||
run: |
|
||||
pnpm i18n:types
|
||||
if ! git diff --exit-code -- src/types/generated; then
|
||||
echo "::error::src/types/generated is stale; run pnpm i18n:types and commit the result"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
- name: Run Prettier check
|
||||
run: pnpm format:check
|
||||
|
||||
|
||||
@@ -939,6 +939,7 @@ export const translationKeys = [
|
||||
'tests.statuses.test.yes',
|
||||
'tests.statuses.test.no',
|
||||
'tests.statuses.test.failed',
|
||||
'tests.statuses.test.risky',
|
||||
'tests.statuses.test.completed',
|
||||
'tests.statuses.test.disallowedIsp',
|
||||
'tests.statuses.test.originalsOnly',
|
||||
|
||||
@@ -1589,6 +1589,7 @@ export interface TranslationResources {
|
||||
noDisney: string
|
||||
originalsOnly: string
|
||||
pending: string
|
||||
risky: string
|
||||
unsupportedRegion: string
|
||||
yes: string
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user