Skip to content

Commit ab617bf

Browse files
authored
Merge branch 'main' into chore/demos-standardize-locales
2 parents 26d84d9 + cdaa0f8 commit ab617bf

File tree

10 files changed

+38
-22
lines changed

10 files changed

+38
-22
lines changed

.changeset/bright-ties-itch.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/mean-rings-beg.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/perfect-pens-prove.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

demo/adonisjs/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# adonis
22

3+
## 0.0.25
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [[`060680c`](https://github.com/lingodotdev/lingo.dev/commit/060680cd13c05dd77dd9d5447c064d948bd21cb0), [`f102356`](https://github.com/lingodotdev/lingo.dev/commit/f102356e1ea12c800399ac11f074c42708c304b1), [`a956e53`](https://github.com/lingodotdev/lingo.dev/commit/a956e537d0d45565c3243dd0c5ba4eec8bed69c6), [`3fd38c2`](https://github.com/lingodotdev/lingo.dev/commit/3fd38c2d38e4b22dcd824c865fe31abbc56bc862)]:
8+
9+
310
## 0.0.24
411

512
### Patch Changes

demo/adonisjs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "adonis",
3-
"version": "0.0.24",
3+
"version": "0.0.25",
44
"private": true,
55
"type": "module",
66
"license": "UNLICENSED",

demo/next-app/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# next-app
22

3+
## 0.2.77
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [[`060680c`](https://github.com/lingodotdev/lingo.dev/commit/060680cd13c05dd77dd9d5447c064d948bd21cb0), [`f102356`](https://github.com/lingodotdev/lingo.dev/commit/f102356e1ea12c800399ac11f074c42708c304b1), [`a956e53`](https://github.com/lingodotdev/lingo.dev/commit/a956e537d0d45565c3243dd0c5ba4eec8bed69c6), [`3fd38c2`](https://github.com/lingodotdev/lingo.dev/commit/3fd38c2d38e4b22dcd824c865fe31abbc56bc862)]:
8+
9+
310
## 0.2.76
411

512
### Patch Changes

demo/next-app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "next-app",
3-
"version": "0.2.76",
3+
"version": "0.2.77",
44
"private": true,
55
"scripts": {
66
"dev": "next dev",

packages/cli/CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
# lingo.dev
22

3+
## 0.114.0
4+
5+
### Minor Changes
6+
7+
- [#1241](https://github.com/lingodotdev/lingo.dev/pull/1241) [`060680c`](https://github.com/lingodotdev/lingo.dev/commit/060680cd13c05dd77dd9d5447c064d948bd21cb0) Thanks [@davidturnbull](https://github.com/davidturnbull)! - Enable locked patterns for all buckets
8+
9+
- [#1240](https://github.com/lingodotdev/lingo.dev/pull/1240) [`a956e53`](https://github.com/lingodotdev/lingo.dev/commit/a956e537d0d45565c3243dd0c5ba4eec8bed69c6) Thanks [@davidturnbull](https://github.com/davidturnbull)! - Enable ignored keys for all buckets
10+
11+
- [#1239](https://github.com/lingodotdev/lingo.dev/pull/1239) [`3fd38c2`](https://github.com/lingodotdev/lingo.dev/commit/3fd38c2d38e4b22dcd824c865fe31abbc56bc862) Thanks [@davidturnbull](https://github.com/davidturnbull)! - Enable locked keys for all buckets
12+
13+
### Patch Changes
14+
15+
- [#1331](https://github.com/lingodotdev/lingo.dev/pull/1331) [`f102356`](https://github.com/lingodotdev/lingo.dev/commit/f102356e1ea12c800399ac11f074c42708c304b1) Thanks [@vrcprl](https://github.com/vrcprl)! - fix xcode-xcstrings-v2 flattening
16+
317
## 0.113.8
418

519
### Patch Changes

packages/cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "lingo.dev",
3-
"version": "0.113.8",
3+
"version": "0.114.0",
44
"description": "Lingo.dev CLI",
55
"private": false,
66
"publishConfig": {

packages/cli/src/cli/loaders/flat.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,13 @@ function createDenormalizeLoader(
7272
});
7373

7474
// Merge preserved objects back (they stay as objects, not flattened)
75-
const denormalized: Record<string, any> = {
76-
...flattened,
77-
...preservedObjects,
78-
};
75+
// BUT: encode their keys too!
76+
const denormalized: Record<string, any> = { ...flattened };
77+
78+
for (const [key, value] of Object.entries(preservedObjects)) {
79+
const encodedKey = encodeURIComponent(String(key));
80+
denormalized[encodedKey] = value;
81+
}
7982

8083
const keysMap = buildDenormalizedKeysMap(denormalized);
8184
return { denormalized, keysMap };

0 commit comments

Comments
 (0)