File tree 37 files changed +204
-95
lines changed
babel-plugin-lingui-macro
37 files changed +204
-95
lines changed Original file line number Diff line number Diff line change 3
3
All notable changes to this project will be documented in this file.
4
4
See [ Conventional Commits] ( https://conventionalcommits.org ) for commit guidelines.
5
5
6
+ # [ 5.2.0] ( https://github.com/lingui/js-lingui/compare/v5.1.2...v5.2.0 ) (2025-01-31)
7
+
8
+ ### Bug Fixes
9
+
10
+ * Allow empty translations for pseudo locale in compile --strict ([ #2129 ] ( https://github.com/lingui/js-lingui/issues/2129 ) ) ([ 8cae5e0] ( https://github.com/lingui/js-lingui/commit/8cae5e0e5a4ab0ab9406aa1683b60a4796c2d9f2 ) )
11
+ * ** core:** remove runtime whitespace trimming aligned with v5 ([ #2169 ] ( https://github.com/lingui/js-lingui/issues/2169 ) ) ([ 47a1ad7] ( https://github.com/lingui/js-lingui/commit/47a1ad71ced726b076d65c98537815b60ae8e9c7 ) )
12
+ * don't use anything from "@babel/types " in runtime ([ #2132 ] ( https://github.com/lingui/js-lingui/issues/2132 ) ) ([ 7ebb88d] ( https://github.com/lingui/js-lingui/commit/7ebb88dc79846839e0826d073cc0d830c09dda27 ) )
13
+ * ** react:** remove children property from runtime Trans ([ #2151 ] ( https://github.com/lingui/js-lingui/issues/2151 ) ) ([ 7540adb] ( https://github.com/lingui/js-lingui/commit/7540adb0128f9acbff745251540e2d91f3cd683c ) )
14
+
15
+ ### Features
16
+
17
+ * add meaningful error when locale is not set ([ #2131 ] ( https://github.com/lingui/js-lingui/issues/2131 ) ) ([ 5ae8363] ( https://github.com/lingui/js-lingui/commit/5ae83630c5afe866b23c5739286eb09fdfe39b95 ) )
18
+ * add ph() and explicit labels for placeholders ([ #2092 ] ( https://github.com/lingui/js-lingui/issues/2092 ) ) ([ 2026c83] ( https://github.com/lingui/js-lingui/commit/2026c83dfa3b969cde30305d52821e561df996cf ) )
19
+ * ** react:** preserve newlines during string formatting ([ #2158 ] ( https://github.com/lingui/js-lingui/issues/2158 ) ) ([ f0566fb] ( https://github.com/lingui/js-lingui/commit/f0566fbe56a1e66ebad23c2f205464972902e683 ) )
20
+ * support short/default/long/full date time formats ([ #2117 ] ( https://github.com/lingui/js-lingui/issues/2117 ) ) ([ 8020427] ( https://github.com/lingui/js-lingui/commit/802042743c60e28d62571a4b08437a7b275c8237 ) )
21
+
6
22
## [ 5.1.2] ( https://github.com/lingui/js-lingui/compare/v5.1.1...v5.1.2 ) (2024-12-16)
7
23
8
24
** Note:** Version bump only for package js-lingui-workspaces
Original file line number Diff line number Diff line change 1
1
{
2
- "version" : " 5.1.2 " ,
2
+ "version" : " 5.2.0 " ,
3
3
"packages" : [" packages/*" ],
4
4
"npmClient" : " yarn" ,
5
5
"command" : {
Original file line number Diff line number Diff line change 3
3
All notable changes to this project will be documented in this file.
4
4
See [ Conventional Commits] ( https://conventionalcommits.org ) for commit guidelines.
5
5
6
+ # [ 5.2.0] ( https://github.com/lingui/js-lingui/compare/v5.1.2...v5.2.0 ) (2025-01-31)
7
+
8
+ ### Bug Fixes
9
+
10
+ * don't use anything from "@babel/types " in runtime ([ #2132 ] ( https://github.com/lingui/js-lingui/issues/2132 ) ) ([ 7ebb88d] ( https://github.com/lingui/js-lingui/commit/7ebb88dc79846839e0826d073cc0d830c09dda27 ) )
11
+
6
12
## [ 5.1.2] ( https://github.com/lingui/js-lingui/compare/v5.1.1...v5.1.2 ) (2024-12-16)
7
13
8
14
** Note:** Version bump only for package @lingui/babel-plugin-extract-messages
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @lingui/babel-plugin-extract-messages" ,
3
- "version" : " 5.1.2 " ,
3
+ "version" : " 5.2.0 " ,
4
4
"description" : " Babel plugin for collecting messages from source code for internationalization" ,
5
5
"main" : " ./dist/index.cjs" ,
6
6
"module" : " ./dist/index.mjs" ,
Original file line number Diff line number Diff line change 3
3
All notable changes to this project will be documented in this file.
4
4
See [ Conventional Commits] ( https://conventionalcommits.org ) for commit guidelines.
5
5
6
+ # [ 5.2.0] ( https://github.com/lingui/js-lingui/compare/v5.1.2...v5.2.0 ) (2025-01-31)
7
+
8
+ ### Features
9
+
10
+ * add ph() and explicit labels for placeholders ([ #2092 ] ( https://github.com/lingui/js-lingui/issues/2092 ) ) ([ 2026c83] ( https://github.com/lingui/js-lingui/commit/2026c83dfa3b969cde30305d52821e561df996cf ) )
11
+
6
12
## [ 5.1.2] ( https://github.com/lingui/js-lingui/compare/v5.1.1...v5.1.2 ) (2024-12-16)
7
13
8
14
** Note:** Version bump only for package @lingui/babel-plugin-lingui-macro
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @lingui/babel-plugin-lingui-macro" ,
3
- "version" : " 5.1.2 " ,
3
+ "version" : " 5.2.0 " ,
4
4
"description" : " Babel plugin for transforming Lingui Macros" ,
5
5
"main" : " ./dist/index.cjs" ,
6
6
"module" : " ./dist/index.mjs" ,
84
84
"@babel/core" : " ^7.20.12" ,
85
85
"@babel/runtime" : " ^7.20.13" ,
86
86
"@babel/types" : " ^7.20.7" ,
87
- "@lingui/conf" : " 5.1.2 " ,
88
- "@lingui/core" : " 5.1.2 " ,
89
- "@lingui/message-utils" : " 5.1.2 "
87
+ "@lingui/conf" : " 5.2.0 " ,
88
+ "@lingui/core" : " 5.2.0 " ,
89
+ "@lingui/message-utils" : " 5.2.0 "
90
90
},
91
91
"peerDependencies" : {
92
92
"babel-plugin-macros" : " 2 || 3"
Original file line number Diff line number Diff line change 3
3
All notable changes to this project will be documented in this file.
4
4
See [ Conventional Commits] ( https://conventionalcommits.org ) for commit guidelines.
5
5
6
+ # [ 5.2.0] ( https://github.com/lingui/js-lingui/compare/v5.1.2...v5.2.0 ) (2025-01-31)
7
+
8
+ ### Bug Fixes
9
+
10
+ * Allow empty translations for pseudo locale in compile --strict ([ #2129 ] ( https://github.com/lingui/js-lingui/issues/2129 ) ) ([ 8cae5e0] ( https://github.com/lingui/js-lingui/commit/8cae5e0e5a4ab0ab9406aa1683b60a4796c2d9f2 ) )
11
+
6
12
## [ 5.1.2] ( https://github.com/lingui/js-lingui/compare/v5.1.1...v5.1.2 ) (2024-12-16)
7
13
8
14
** Note:** Version bump only for package @lingui/cli
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @lingui/cli" ,
3
- "version" : " 5.1.2 " ,
3
+ "version" : " 5.2.0 " ,
4
4
"description" : " CLI for working wit message catalogs" ,
5
5
"keywords" : [
6
6
" cli" ,
57
57
"@babel/parser" : " ^7.22.0" ,
58
58
"@babel/runtime" : " ^7.21.0" ,
59
59
"@babel/types" : " ^7.21.2" ,
60
- "@lingui/babel-plugin-extract-messages" : " 5.1.2 " ,
61
- "@lingui/babel-plugin-lingui-macro" : " 5.1.2 " ,
62
- "@lingui/conf" : " 5.1.2 " ,
63
- "@lingui/core" : " 5.1.2 " ,
64
- "@lingui/format-po" : " 5.1.2 " ,
65
- "@lingui/message-utils" : " 5.1.2 " ,
60
+ "@lingui/babel-plugin-extract-messages" : " 5.2.0 " ,
61
+ "@lingui/babel-plugin-lingui-macro" : " 5.2.0 " ,
62
+ "@lingui/conf" : " 5.2.0 " ,
63
+ "@lingui/core" : " 5.2.0 " ,
64
+ "@lingui/format-po" : " 5.2.0 " ,
65
+ "@lingui/message-utils" : " 5.2.0 " ,
66
66
"babel-plugin-macros" : " ^3.0.1" ,
67
67
"chalk" : " ^4.1.0" ,
68
68
"chokidar" : " 3.5.1" ,
Original file line number Diff line number Diff line change 3
3
All notable changes to this project will be documented in this file.
4
4
See [ Conventional Commits] ( https://conventionalcommits.org ) for commit guidelines.
5
5
6
+ # [ 5.2.0] ( https://github.com/lingui/js-lingui/compare/v5.1.2...v5.2.0 ) (2025-01-31)
7
+
8
+ ** Note:** Version bump only for package @lingui/conf
9
+
6
10
## [ 5.1.2] ( https://github.com/lingui/js-lingui/compare/v5.1.1...v5.1.2 ) (2024-12-16)
7
11
8
12
** Note:** Version bump only for package @lingui/conf
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @lingui/conf" ,
3
- "version" : " 5.1.2 " ,
3
+ "version" : " 5.2.0 " ,
4
4
"sideEffects" : false ,
5
5
"description" : " Get lingui configuration from package.json" ,
6
6
"keywords" : [
Original file line number Diff line number Diff line change 3
3
All notable changes to this project will be documented in this file.
4
4
See [ Conventional Commits] ( https://conventionalcommits.org ) for commit guidelines.
5
5
6
+ # [ 5.2.0] ( https://github.com/lingui/js-lingui/compare/v5.1.2...v5.2.0 ) (2025-01-31)
7
+
8
+ ### Bug Fixes
9
+
10
+ * ** core:** remove runtime whitespace trimming aligned with v5 ([ #2169 ] ( https://github.com/lingui/js-lingui/issues/2169 ) ) ([ 47a1ad7] ( https://github.com/lingui/js-lingui/commit/47a1ad71ced726b076d65c98537815b60ae8e9c7 ) )
11
+
12
+ ### Features
13
+
14
+ * add meaningful error when locale is not set ([ #2131 ] ( https://github.com/lingui/js-lingui/issues/2131 ) ) ([ 5ae8363] ( https://github.com/lingui/js-lingui/commit/5ae83630c5afe866b23c5739286eb09fdfe39b95 ) )
15
+ * add ph() and explicit labels for placeholders ([ #2092 ] ( https://github.com/lingui/js-lingui/issues/2092 ) ) ([ 2026c83] ( https://github.com/lingui/js-lingui/commit/2026c83dfa3b969cde30305d52821e561df996cf ) )
16
+ * support short/default/long/full date time formats ([ #2117 ] ( https://github.com/lingui/js-lingui/issues/2117 ) ) ([ 8020427] ( https://github.com/lingui/js-lingui/commit/802042743c60e28d62571a4b08437a7b275c8237 ) )
17
+
6
18
## [ 5.1.2] ( https://github.com/lingui/js-lingui/compare/v5.1.1...v5.1.2 ) (2024-12-16)
7
19
8
20
** Note:** Version bump only for package @lingui/core
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @lingui/core" ,
3
- "version" : " 5.1.2 " ,
3
+ "version" : " 5.2.0 " ,
4
4
"sideEffects" : false ,
5
5
"description" : " I18n tools for javascript" ,
6
6
"main" : " ./dist/index.cjs" ,
60
60
],
61
61
"dependencies" : {
62
62
"@babel/runtime" : " ^7.20.13" ,
63
- "@lingui/message-utils" : " 5.1.2 " ,
63
+ "@lingui/message-utils" : " 5.2.0 " ,
64
64
"unraw" : " ^3.0.0"
65
65
},
66
66
"devDependencies" : {
69
69
"unbuild" : " 2.0.0"
70
70
},
71
71
"peerDependencies" : {
72
- "@lingui/babel-plugin-lingui-macro" : " 5.1.2 " ,
72
+ "@lingui/babel-plugin-lingui-macro" : " 5.2.0 " ,
73
73
"babel-plugin-macros" : " 2 || 3"
74
74
},
75
75
"peerDependenciesMeta" : {
Original file line number Diff line number Diff line change 3
3
All notable changes to this project will be documented in this file.
4
4
See [ Conventional Commits] ( https://conventionalcommits.org ) for commit guidelines.
5
5
6
+ # [ 5.2.0] ( https://github.com/lingui/js-lingui/compare/v5.1.2...v5.2.0 ) (2025-01-31)
7
+
8
+ ** Note:** Version bump only for package @lingui/detect-locale
9
+
6
10
## [ 5.1.2] ( https://github.com/lingui/js-lingui/compare/v5.1.1...v5.1.2 ) (2024-12-16)
7
11
8
12
** Note:** Version bump only for package @lingui/detect-locale
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @lingui/detect-locale" ,
3
- "version" : " 5.1.2 " ,
3
+ "version" : " 5.2.0 " ,
4
4
"sideEffects" : false ,
5
5
"description" : " @Lingui package to help you find the correct browser/server locale" ,
6
6
"main" : " ./dist/index.cjs" ,
Original file line number Diff line number Diff line change 3
3
All notable changes to this project will be documented in this file.
4
4
See [ Conventional Commits] ( https://conventionalcommits.org ) for commit guidelines.
5
5
6
+ # [ 5.2.0] ( https://github.com/lingui/js-lingui/compare/v5.1.2...v5.2.0 ) (2025-01-31)
7
+
8
+ ** Note:** Version bump only for package @lingui/extractor-vue
9
+
6
10
## [ 5.1.2] ( https://github.com/lingui/js-lingui/compare/v5.1.1...v5.1.2 ) (2024-12-16)
7
11
8
12
** Note:** Version bump only for package @lingui/extractor-vue
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @lingui/extractor-vue" ,
3
- "version" : " 5.1.2 " ,
3
+ "version" : " 5.2.0 " ,
4
4
"description" : " Custom Vue.js extractor to be used with the CLI tool" ,
5
5
"main" : " ./dist/index.cjs" ,
6
6
"module" : " ./dist/index.mjs" ,
38
38
" /dist"
39
39
],
40
40
"dependencies" : {
41
- "@lingui/cli" : " 5.1.2 " ,
42
- "@lingui/conf" : " 5.1.2 " ,
41
+ "@lingui/cli" : " 5.2.0 " ,
42
+ "@lingui/conf" : " 5.2.0 " ,
43
43
"@vue/compiler-sfc" : " ^3.2.47"
44
44
},
45
45
"devDependencies" : {
46
- "@lingui/babel-plugin-extract-messages" : " 5.1.2 " ,
46
+ "@lingui/babel-plugin-extract-messages" : " 5.2.0 " ,
47
47
"unbuild" : " 2.0.0"
48
48
}
49
49
}
Original file line number Diff line number Diff line change 3
3
All notable changes to this project will be documented in this file.
4
4
See [ Conventional Commits] ( https://conventionalcommits.org ) for commit guidelines.
5
5
6
+ # [ 5.2.0] ( https://github.com/lingui/js-lingui/compare/v5.1.2...v5.2.0 ) (2025-01-31)
7
+
8
+ ** Note:** Version bump only for package @lingui/format-csv
9
+
6
10
## [ 5.1.2] ( https://github.com/lingui/js-lingui/compare/v5.1.1...v5.1.2 ) (2024-12-16)
7
11
8
12
** Note:** Version bump only for package @lingui/format-csv
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @lingui/format-csv" ,
3
- "version" : " 5.1.2 " ,
3
+ "version" : " 5.2.0 " ,
4
4
"description" : " CSV format for Lingui Catalogs" ,
5
5
"main" : " ./dist/csv.cjs" ,
6
6
"module" : " ./dist/csv.mjs" ,
39
39
" dist/"
40
40
],
41
41
"dependencies" : {
42
- "@lingui/conf" : " 5.1.2 " ,
42
+ "@lingui/conf" : " 5.2.0 " ,
43
43
"papaparse" : " ^5.4.0"
44
44
},
45
45
"devDependencies" : {
Original file line number Diff line number Diff line change 3
3
All notable changes to this project will be documented in this file.
4
4
See [ Conventional Commits] ( https://conventionalcommits.org ) for commit guidelines.
5
5
6
+ # [ 5.2.0] ( https://github.com/lingui/js-lingui/compare/v5.1.2...v5.2.0 ) (2025-01-31)
7
+
8
+ ** Note:** Version bump only for package @lingui/format-json
9
+
6
10
## [ 5.1.2] ( https://github.com/lingui/js-lingui/compare/v5.1.1...v5.1.2 ) (2024-12-16)
7
11
8
12
** Note:** Version bump only for package @lingui/format-json
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @lingui/format-json" ,
3
- "version" : " 5.1.2 " ,
3
+ "version" : " 5.2.0 " ,
4
4
"description" : " JSON format for Lingui Catalogs" ,
5
5
"main" : " ./dist/json.cjs" ,
6
6
"module" : " ./dist/json.mjs" ,
39
39
" dist/"
40
40
],
41
41
"dependencies" : {
42
- "@lingui/conf" : " 5.1.2 "
42
+ "@lingui/conf" : " 5.2.0 "
43
43
},
44
44
"devDependencies" : {
45
45
"tsd" : " ^0.28.0" ,
Original file line number Diff line number Diff line change 3
3
All notable changes to this project will be documented in this file.
4
4
See [ Conventional Commits] ( https://conventionalcommits.org ) for commit guidelines.
5
5
6
+ # [ 5.2.0] ( https://github.com/lingui/js-lingui/compare/v5.1.2...v5.2.0 ) (2025-01-31)
7
+
8
+ ** Note:** Version bump only for package @lingui/format-po-gettext
9
+
6
10
## [ 5.1.2] ( https://github.com/lingui/js-lingui/compare/v5.1.1...v5.1.2 ) (2024-12-16)
7
11
8
12
** Note:** Version bump only for package @lingui/format-po-gettext
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @lingui/format-po-gettext" ,
3
- "version" : " 5.1.2 " ,
3
+ "version" : " 5.2.0 " ,
4
4
"description" : " Gettext PO format with gettext-style plurals for Lingui Catalogs" ,
5
5
"main" : " ./dist/po-gettext.cjs" ,
6
6
"module" : " ./dist/po-gettext.mjs" ,
41
41
" dist/"
42
42
],
43
43
"dependencies" : {
44
- "@lingui/conf" : " 5.1.2 " ,
45
- "@lingui/format-po" : " 5.1.2 " ,
46
- "@lingui/message-utils" : " 5.1.2 " ,
44
+ "@lingui/conf" : " 5.2.0 " ,
45
+ "@lingui/format-po" : " 5.2.0 " ,
46
+ "@lingui/message-utils" : " 5.2.0 " ,
47
47
"@messageformat/parser" : " ^5.0.0" ,
48
48
"cldr-core" : " ^45.0.0" ,
49
49
"node-gettext" : " ^3.0.0" ,
Original file line number Diff line number Diff line change 3
3
All notable changes to this project will be documented in this file.
4
4
See [ Conventional Commits] ( https://conventionalcommits.org ) for commit guidelines.
5
5
6
+ # [ 5.2.0] ( https://github.com/lingui/js-lingui/compare/v5.1.2...v5.2.0 ) (2025-01-31)
7
+
8
+ ** Note:** Version bump only for package @lingui/format-po
9
+
6
10
## [ 5.1.2] ( https://github.com/lingui/js-lingui/compare/v5.1.1...v5.1.2 ) (2024-12-16)
7
11
8
12
** Note:** Version bump only for package @lingui/format-po
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @lingui/format-po" ,
3
- "version" : " 5.1.2 " ,
3
+ "version" : " 5.2.0 " ,
4
4
"description" : " Gettext PO format for Lingui Catalogs" ,
5
5
"main" : " ./dist/po.cjs" ,
6
6
"module" : " ./dist/po.mjs" ,
41
41
" dist/"
42
42
],
43
43
"dependencies" : {
44
- "@lingui/conf" : " 5.1.2 " ,
45
- "@lingui/message-utils" : " 5.1.2 " ,
44
+ "@lingui/conf" : " 5.2.0 " ,
45
+ "@lingui/message-utils" : " 5.2.0 " ,
46
46
"date-fns" : " ^3.6.0" ,
47
47
"pofile" : " ^1.1.4"
48
48
},
Original file line number Diff line number Diff line change 3
3
All notable changes to this project will be documented in this file.
4
4
See [ Conventional Commits] ( https://conventionalcommits.org ) for commit guidelines.
5
5
6
+ # [ 5.2.0] ( https://github.com/lingui/js-lingui/compare/v5.1.2...v5.2.0 ) (2025-01-31)
7
+
8
+ ** Note:** Version bump only for package @lingui/loader
9
+
6
10
## [ 5.1.2] ( https://github.com/lingui/js-lingui/compare/v5.1.1...v5.1.2 ) (2024-12-16)
7
11
8
12
** Note:** Version bump only for package @lingui/loader
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @lingui/loader" ,
3
- "version" : " 5.1.2 " ,
3
+ "version" : " 5.2.0 " ,
4
4
"description" : " webpack loader for lingui message catalogs" ,
5
5
"types" : " ./dist/index.d.ts" ,
6
6
"main" : " ./dist/index.cjs" ,
43
43
],
44
44
"dependencies" : {
45
45
"@babel/runtime" : " ^7.20.13" ,
46
- "@lingui/cli" : " 5.1.2 " ,
47
- "@lingui/conf" : " 5.1.2 "
46
+ "@lingui/cli" : " 5.2.0 " ,
47
+ "@lingui/conf" : " 5.2.0 "
48
48
},
49
49
"devDependencies" : {
50
- "@lingui/format-json" : " 5.1.2 " ,
50
+ "@lingui/format-json" : " 5.2.0 " ,
51
51
"unbuild" : " 2.0.0" ,
52
52
"webpack" : " ^5.76.1"
53
53
},
You can’t perform that action at this time.
0 commit comments