-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Bump lingui to v5 remove lingui macro, split into react/macro and core/macro remove babel macro, replace with lingui macro plugin * split lingui/macro imports into lingui/core/macro and lingui/react/macro perl -i -npe 's/@lingui\/macro/@lingui\/core\/macro/' src/**/*.* perl -i -npe 's/import { Trans,(.*) from ..lingui.core.macro/import { Trans } from '\''\@lingui\/react\/macro'\''; import {$1 from '\''\@lingui\/core\/macro/' src/**/*.* perl -i -npe 's/import { Trans } from ..lingui.core.macro/import { Trans } from '\''\@lingui\/react\/macro/' src/**/*.* perl -i -npe 's/; import/; import/' src/**/*.* npm run prettier * lingui.config: use defineConfig * Bump eslint, typescript-eslint; add eslint-plugin-lingui and fix linter warnings, allow dependabot to update these again, disable `lingui/no-expression-in-message` for now, too many warnings * npm run gettext:extract gettext:compile
- Loading branch information
Showing
203 changed files
with
6,543 additions
and
4,908 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,6 @@ | |
], | ||
"plugins": [ | ||
"@babel/plugin-transform-runtime", | ||
"babel-plugin-macros" | ||
"@lingui/babel-plugin-lingui-macro" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
const po = require("@lingui/format-po").formatter({ lineNumbers: false }); | ||
import { defineConfig } from '@lingui/cli'; | ||
import { formatter } from '@lingui/format-po'; | ||
|
||
export default { | ||
export default defineConfig({ | ||
catalogs: [ | ||
{ | ||
path: '<rootDir>/locale/{locale}', | ||
include: ['<rootDir>/src'], | ||
}, | ||
], | ||
format: po, | ||
locales: ['en', 'es', 'fr', 'ko', 'nl', 'ru', 'ja', 'zh'], | ||
format: formatter({ lineNumbers: false }), | ||
locales: ['en', 'es', 'fr', 'ja', 'ko', 'nl', 'ru', 'zh'], | ||
sourceLocale: 'en', | ||
}; | ||
}); |
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.