mirror of
https://github.com/grafana/grafana.git
synced 2026-07-29 15:59:50 -05:00
I18n: Migrate to I18next (#55845)
* Switch from lingui from i18next * Change lingui messages to i18next messages * Change lingui messages to i18next messages (grafana-ui) * Init i18n for tests
This commit is contained in:
+6
-7
@@ -49,9 +49,9 @@
|
||||
"plugins:build-bundled": "grafana-toolkit plugin:bundle-managed",
|
||||
"watch": "yarn start -d watch,start core:start --watchTheme",
|
||||
"ci:test-frontend": "yarn run test:ci && yarn grafana-toolkit node-version-check",
|
||||
"i18n:extract": "lingui extract",
|
||||
"i18n:compile": "lingui compile",
|
||||
"postinstall": "husky install",
|
||||
"i18n:extract": "yarn run i18next -c public/locales/i18next-parser.config.js 'public/**/*.{tsx,ts}' 'packages/grafana-ui/**/*.{tsx,ts}' && node ./public/locales/psuedo.js",
|
||||
"i18n:compile": "echo 'no i18n compile yet, all good'",
|
||||
"betterer": "betterer",
|
||||
"betterer:merge": "betterer merge",
|
||||
"betterer:stats": "ts-node --transpile-only --project ./scripts/cli/tsconfig.json ./scripts/cli/reportBettererStats.ts"
|
||||
@@ -96,8 +96,6 @@
|
||||
"@grafana/eslint-config": "5.0.0",
|
||||
"@grafana/toolkit": "workspace:*",
|
||||
"@grafana/tsconfig": "^1.2.0-rc1",
|
||||
"@lingui/cli": "3.14.0",
|
||||
"@lingui/macro": "3.14.0",
|
||||
"@pmmmwh/react-refresh-webpack-plugin": "0.5.7",
|
||||
"@react-types/button": "3.6.1",
|
||||
"@react-types/menu": "3.7.1",
|
||||
@@ -131,7 +129,6 @@
|
||||
"@types/jquery": "3.5.14",
|
||||
"@types/js-yaml": "^4.0.5",
|
||||
"@types/jsurl": "^1.2.28",
|
||||
"@types/lingui__macro": "^3",
|
||||
"@types/lodash": "4.14.182",
|
||||
"@types/logfmt": "^1.2.1",
|
||||
"@types/mousetrap": "1.6.9",
|
||||
@@ -199,6 +196,7 @@
|
||||
"html-webpack-plugin": "5.5.0",
|
||||
"http-server": "14.1.1",
|
||||
"husky": "8.0.1",
|
||||
"i18next-parser": "6.5.0",
|
||||
"jest": "28.1.3",
|
||||
"jest-canvas-mock": "2.4.0",
|
||||
"jest-date-mock": "1.0.8",
|
||||
@@ -269,8 +267,6 @@
|
||||
"@lezer/common": "1.0.0",
|
||||
"@lezer/highlight": "^1.0.0",
|
||||
"@lezer/lr": "1.2.3",
|
||||
"@lingui/core": "3.14.0",
|
||||
"@lingui/react": "3.14.0",
|
||||
"@opentelemetry/api": "1.2.0",
|
||||
"@opentelemetry/exporter-collector": "0.25.0",
|
||||
"@opentelemetry/semantic-conventions": "1.7.0",
|
||||
@@ -328,6 +324,7 @@
|
||||
"framework-utils": "^1.1.0",
|
||||
"history": "4.10.1",
|
||||
"hoist-non-react-statics": "3.3.2",
|
||||
"i18next": "^21.9.2",
|
||||
"immer": "9.0.15",
|
||||
"immutable": "4.1.0",
|
||||
"jquery": "3.6.0",
|
||||
@@ -352,6 +349,7 @@
|
||||
"pluralize": "^8.0.0",
|
||||
"prismjs": "1.29.0",
|
||||
"prop-types": "15.8.1",
|
||||
"pseudoizer": "^0.1.0",
|
||||
"rc-cascader": "3.7.0",
|
||||
"rc-drawer": "4.4.3",
|
||||
"rc-slider": "9.7.5",
|
||||
@@ -367,6 +365,7 @@
|
||||
"react-grid-layout": "1.3.4",
|
||||
"react-highlight-words": "0.18.0",
|
||||
"react-hook-form": "7.5.3",
|
||||
"react-i18next": "^11.18.6",
|
||||
"react-inlinesvg": "3.0.0",
|
||||
"react-moveable": "0.38.4",
|
||||
"react-popper": "2.3.0",
|
||||
|
||||
Reference in New Issue
Block a user