Skip to content

Commit a49fc6a

Browse files
authored
Lingui v5 (#160)
* Initial conversion * More conversions * Final pass * Add a few more translations * Update po files * More fixes * Fix some tests * More test updates * Fixing more tests * More test fixes * More test fixes * All tests now pass
1 parent 75520b7 commit a49fc6a

File tree

592 files changed

+84669
-65948
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

592 files changed

+84669
-65948
lines changed

awx/locale/en-us/LC_MESSAGES/django.po

Lines changed: 2576 additions & 1492 deletions
Large diffs are not rendered by default.

awx/locale/es/LC_MESSAGES/django.po

Lines changed: 3041 additions & 2290 deletions
Large diffs are not rendered by default.

awx/locale/fr/LC_MESSAGES/django.po

Lines changed: 3036 additions & 2290 deletions
Large diffs are not rendered by default.

awx/locale/ja/LC_MESSAGES/django.po

Lines changed: 3031 additions & 2289 deletions
Large diffs are not rendered by default.

awx/locale/ko/LC_MESSAGES/django.po

Lines changed: 3031 additions & 2289 deletions
Large diffs are not rendered by default.

awx/locale/nl/LC_MESSAGES/django.po

Lines changed: 3033 additions & 2290 deletions
Large diffs are not rendered by default.

awx/locale/zh/LC_MESSAGES/django.po

Lines changed: 3033 additions & 2290 deletions
Large diffs are not rendered by default.

awx/ui/CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ Internationalization leans on the [lingui](https://github.com/lingui/js-lingui)
337337

338338
The lingui library provides various React helpers for dealing with both marking strings for translation, and replacing strings that have been translated. For consistency and ease of use, we have consolidated on one pattern for the codebase. To set strings to be translated in the UI:
339339

340-
- import the t template tag function from the @lingui/macro package.
340+
- import the t template tag function from the @lingui/react/macro package.
341341
- wrap your string using the following format: `` t`String to be translated` ``
342342

343343
**Note:** If you have a variable string with text that needs translating, you must wrap it in `` t`${variable} string` `` where it is defined. Then you must run `npm run extract-strings` to generate new `.po` files and submit those files along with your pull request.

awx/ui/package-lock.json

Lines changed: 462 additions & 590 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

awx/ui/package.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"node": ">=20.18.2"
77
},
88
"dependencies": {
9-
"@lingui/react": "4.14.0",
9+
"@lingui/react": "^5.4.0",
1010
"@patternfly/patternfly": "4.224.5",
1111
"@patternfly/react-core": "4.278.1",
1212
"@patternfly/react-icons": "4.93.7",
@@ -40,10 +40,9 @@
4040
"@babel/eslint-plugin": "^7.27.1",
4141
"@babel/plugin-syntax-jsx": "^7.27.1",
4242
"@babel/preset-react": "^7.27.1",
43-
"@lingui/cli": "^4.14.0",
44-
"@lingui/conf": "^4.14.0",
45-
"@lingui/loader": "4.14.0",
46-
"@lingui/macro": "^4.14.0",
43+
"@lingui/cli": "^5.4.0",
44+
"@lingui/conf": "^5.4.0",
45+
"@lingui/loader": "^5.4.0",
4746
"@nteract/mockument": "^1.0.4",
4847
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.3",
4948
"@svgr/webpack": "^8.1.0",

0 commit comments

Comments
 (0)