Skip to content

Commit 9c50b48

Browse files
chore(release): published v5.2.0 [skip ci] (#2172)
1 parent c3a5275 commit 9c50b48

37 files changed

+204
-95
lines changed

CHANGELOG.md

+16
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,22 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

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+
622
## [5.1.2](https://github.com/lingui/js-lingui/compare/v5.1.1...v5.1.2) (2024-12-16)
723

824
**Note:** Version bump only for package js-lingui-workspaces

lerna.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "5.1.2",
2+
"version": "5.2.0",
33
"packages": ["packages/*"],
44
"npmClient": "yarn",
55
"command": {

packages/babel-plugin-extract-messages/CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

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+
612
## [5.1.2](https://github.com/lingui/js-lingui/compare/v5.1.1...v5.1.2) (2024-12-16)
713

814
**Note:** Version bump only for package @lingui/babel-plugin-extract-messages

packages/babel-plugin-extract-messages/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@lingui/babel-plugin-extract-messages",
3-
"version": "5.1.2",
3+
"version": "5.2.0",
44
"description": "Babel plugin for collecting messages from source code for internationalization",
55
"main": "./dist/index.cjs",
66
"module": "./dist/index.mjs",

packages/babel-plugin-lingui-macro/CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

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+
612
## [5.1.2](https://github.com/lingui/js-lingui/compare/v5.1.1...v5.1.2) (2024-12-16)
713

814
**Note:** Version bump only for package @lingui/babel-plugin-lingui-macro

packages/babel-plugin-lingui-macro/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@lingui/babel-plugin-lingui-macro",
3-
"version": "5.1.2",
3+
"version": "5.2.0",
44
"description": "Babel plugin for transforming Lingui Macros",
55
"main": "./dist/index.cjs",
66
"module": "./dist/index.mjs",
@@ -84,9 +84,9 @@
8484
"@babel/core": "^7.20.12",
8585
"@babel/runtime": "^7.20.13",
8686
"@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"
9090
},
9191
"peerDependencies": {
9292
"babel-plugin-macros": "2 || 3"

packages/cli/CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

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+
612
## [5.1.2](https://github.com/lingui/js-lingui/compare/v5.1.1...v5.1.2) (2024-12-16)
713

814
**Note:** Version bump only for package @lingui/cli

packages/cli/package.json

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@lingui/cli",
3-
"version": "5.1.2",
3+
"version": "5.2.0",
44
"description": "CLI for working wit message catalogs",
55
"keywords": [
66
"cli",
@@ -57,12 +57,12 @@
5757
"@babel/parser": "^7.22.0",
5858
"@babel/runtime": "^7.21.0",
5959
"@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",
6666
"babel-plugin-macros": "^3.0.1",
6767
"chalk": "^4.1.0",
6868
"chokidar": "3.5.1",

packages/conf/CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

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+
610
## [5.1.2](https://github.com/lingui/js-lingui/compare/v5.1.1...v5.1.2) (2024-12-16)
711

812
**Note:** Version bump only for package @lingui/conf

packages/conf/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@lingui/conf",
3-
"version": "5.1.2",
3+
"version": "5.2.0",
44
"sideEffects": false,
55
"description": "Get lingui configuration from package.json",
66
"keywords": [

packages/core/CHANGELOG.md

+12
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,18 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

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+
618
## [5.1.2](https://github.com/lingui/js-lingui/compare/v5.1.1...v5.1.2) (2024-12-16)
719

820
**Note:** Version bump only for package @lingui/core

packages/core/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@lingui/core",
3-
"version": "5.1.2",
3+
"version": "5.2.0",
44
"sideEffects": false,
55
"description": "I18n tools for javascript",
66
"main": "./dist/index.cjs",
@@ -60,7 +60,7 @@
6060
],
6161
"dependencies": {
6262
"@babel/runtime": "^7.20.13",
63-
"@lingui/message-utils": "5.1.2",
63+
"@lingui/message-utils": "5.2.0",
6464
"unraw": "^3.0.0"
6565
},
6666
"devDependencies": {
@@ -69,7 +69,7 @@
6969
"unbuild": "2.0.0"
7070
},
7171
"peerDependencies": {
72-
"@lingui/babel-plugin-lingui-macro": "5.1.2",
72+
"@lingui/babel-plugin-lingui-macro": "5.2.0",
7373
"babel-plugin-macros": "2 || 3"
7474
},
7575
"peerDependenciesMeta": {

packages/detect-locale/CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

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+
610
## [5.1.2](https://github.com/lingui/js-lingui/compare/v5.1.1...v5.1.2) (2024-12-16)
711

812
**Note:** Version bump only for package @lingui/detect-locale

packages/detect-locale/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@lingui/detect-locale",
3-
"version": "5.1.2",
3+
"version": "5.2.0",
44
"sideEffects": false,
55
"description": "@Lingui package to help you find the correct browser/server locale",
66
"main": "./dist/index.cjs",

packages/extractor-vue/CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

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+
610
## [5.1.2](https://github.com/lingui/js-lingui/compare/v5.1.1...v5.1.2) (2024-12-16)
711

812
**Note:** Version bump only for package @lingui/extractor-vue

packages/extractor-vue/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@lingui/extractor-vue",
3-
"version": "5.1.2",
3+
"version": "5.2.0",
44
"description": "Custom Vue.js extractor to be used with the CLI tool",
55
"main": "./dist/index.cjs",
66
"module": "./dist/index.mjs",
@@ -38,12 +38,12 @@
3838
"/dist"
3939
],
4040
"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",
4343
"@vue/compiler-sfc": "^3.2.47"
4444
},
4545
"devDependencies": {
46-
"@lingui/babel-plugin-extract-messages": "5.1.2",
46+
"@lingui/babel-plugin-extract-messages": "5.2.0",
4747
"unbuild": "2.0.0"
4848
}
4949
}

packages/format-csv/CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

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+
610
## [5.1.2](https://github.com/lingui/js-lingui/compare/v5.1.1...v5.1.2) (2024-12-16)
711

812
**Note:** Version bump only for package @lingui/format-csv

packages/format-csv/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@lingui/format-csv",
3-
"version": "5.1.2",
3+
"version": "5.2.0",
44
"description": "CSV format for Lingui Catalogs",
55
"main": "./dist/csv.cjs",
66
"module": "./dist/csv.mjs",
@@ -39,7 +39,7 @@
3939
"dist/"
4040
],
4141
"dependencies": {
42-
"@lingui/conf": "5.1.2",
42+
"@lingui/conf": "5.2.0",
4343
"papaparse": "^5.4.0"
4444
},
4545
"devDependencies": {

packages/format-json/CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

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+
610
## [5.1.2](https://github.com/lingui/js-lingui/compare/v5.1.1...v5.1.2) (2024-12-16)
711

812
**Note:** Version bump only for package @lingui/format-json

packages/format-json/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@lingui/format-json",
3-
"version": "5.1.2",
3+
"version": "5.2.0",
44
"description": "JSON format for Lingui Catalogs",
55
"main": "./dist/json.cjs",
66
"module": "./dist/json.mjs",
@@ -39,7 +39,7 @@
3939
"dist/"
4040
],
4141
"dependencies": {
42-
"@lingui/conf": "5.1.2"
42+
"@lingui/conf": "5.2.0"
4343
},
4444
"devDependencies": {
4545
"tsd": "^0.28.0",

packages/format-po-gettext/CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

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+
610
## [5.1.2](https://github.com/lingui/js-lingui/compare/v5.1.1...v5.1.2) (2024-12-16)
711

812
**Note:** Version bump only for package @lingui/format-po-gettext

packages/format-po-gettext/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@lingui/format-po-gettext",
3-
"version": "5.1.2",
3+
"version": "5.2.0",
44
"description": "Gettext PO format with gettext-style plurals for Lingui Catalogs",
55
"main": "./dist/po-gettext.cjs",
66
"module": "./dist/po-gettext.mjs",
@@ -41,9 +41,9 @@
4141
"dist/"
4242
],
4343
"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",
4747
"@messageformat/parser": "^5.0.0",
4848
"cldr-core": "^45.0.0",
4949
"node-gettext": "^3.0.0",

packages/format-po/CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

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+
610
## [5.1.2](https://github.com/lingui/js-lingui/compare/v5.1.1...v5.1.2) (2024-12-16)
711

812
**Note:** Version bump only for package @lingui/format-po

packages/format-po/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@lingui/format-po",
3-
"version": "5.1.2",
3+
"version": "5.2.0",
44
"description": "Gettext PO format for Lingui Catalogs",
55
"main": "./dist/po.cjs",
66
"module": "./dist/po.mjs",
@@ -41,8 +41,8 @@
4141
"dist/"
4242
],
4343
"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",
4646
"date-fns": "^3.6.0",
4747
"pofile": "^1.1.4"
4848
},

packages/loader/CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

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+
610
## [5.1.2](https://github.com/lingui/js-lingui/compare/v5.1.1...v5.1.2) (2024-12-16)
711

812
**Note:** Version bump only for package @lingui/loader

packages/loader/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@lingui/loader",
3-
"version": "5.1.2",
3+
"version": "5.2.0",
44
"description": "webpack loader for lingui message catalogs",
55
"types": "./dist/index.d.ts",
66
"main": "./dist/index.cjs",
@@ -43,11 +43,11 @@
4343
],
4444
"dependencies": {
4545
"@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"
4848
},
4949
"devDependencies": {
50-
"@lingui/format-json": "5.1.2",
50+
"@lingui/format-json": "5.2.0",
5151
"unbuild": "2.0.0",
5252
"webpack": "^5.76.1"
5353
},

0 commit comments

Comments
 (0)