mirror of
https://github.com/grafana/grafana.git
synced 2026-03-13 15:29:48 +08:00
I18n: Add LANG override to extraction command (#118180)
This commit is contained in:
8
Makefile
8
Makefile
@@ -136,17 +136,17 @@ i18n-extract-enterprise:
|
||||
else
|
||||
i18n-extract-enterprise:
|
||||
@echo "Extracting i18n strings for Enterprise"
|
||||
cd public/locales/enterprise && yarn run i18next-cli extract --sync-primary
|
||||
cd public/locales/enterprise && LANG=en_US.UTF-8 yarn run i18next-cli extract --sync-primary
|
||||
endif
|
||||
|
||||
.PHONY: i18n-extract
|
||||
i18n-extract: i18n-extract-enterprise
|
||||
@echo "Extracting i18n strings for OSS"
|
||||
yarn run i18next-cli extract --sync-primary
|
||||
LANG=en_US.UTF-8 yarn run i18next-cli extract --sync-primary
|
||||
@echo "Extracting i18n strings for packages"
|
||||
yarn run packages:i18n-extract
|
||||
LANG=en_US.UTF-8 yarn run packages:i18n-extract
|
||||
@echo "Extracting i18n strings for plugins"
|
||||
yarn run plugin:i18n-extract
|
||||
LANG=en_US.UTF-8 yarn run plugin:i18n-extract
|
||||
|
||||
##@ Building
|
||||
.PHONY: gen-cue
|
||||
|
||||
@@ -72,7 +72,7 @@
|
||||
"plugins:build-bundled": "echo 'bundled plugins are no longer supported'",
|
||||
"watch": "yarn start -d watch,start core:start --watchTheme",
|
||||
"i18n:stats": "node ./scripts/cli/reportI18nStats.mjs",
|
||||
"i18n-extract": "make i18n-extract",
|
||||
"i18n-extract": "LANG=en_US.UTF-8 make i18n-extract",
|
||||
"plugin:build": "nx run-many -t build --projects='tag:scope:plugin'",
|
||||
"plugin:build:commit": "nx run-many -t build:commit --projects='tag:scope:plugin'",
|
||||
"plugin:build:dev": "nx run-many -t dev --projects='tag:scope:plugin' --maxParallel=100",
|
||||
|
||||
Reference in New Issue
Block a user