Skip to content

Commit 166e6e1

Browse files
Merge branch 'main' into best/aisdk-provider-upgrades
2 parents ac8d6ac + 9ba5ed2 commit 166e6e1

File tree

16 files changed

+526
-1290
lines changed

16 files changed

+526
-1290
lines changed

.changeset/plenty-lemons-remain.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
---

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.38
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [[`3dd04bd`](https://github.com/lingodotdev/lingo.dev/commit/3dd04bd937828c16862b2b1459576931028bb01a)]:
8+
- lingo.dev@0.116.4
9+
310
## 0.0.37
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.37",
3+
"version": "0.0.38",
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.90
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [[`3dd04bd`](https://github.com/lingodotdev/lingo.dev/commit/3dd04bd937828c16862b2b1459576931028bb01a)]:
8+
- lingo.dev@0.116.4
9+
310
## 0.2.89
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.89",
3+
"version": "0.2.90",
44
"private": true,
55
"scripts": {
66
"dev": "next dev",

packages/cli/CHANGELOG.md

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

3+
## 0.116.4
4+
5+
### Patch Changes
6+
7+
- [#1622](https://github.com/lingodotdev/lingo.dev/pull/1622) [`3dd04bd`](https://github.com/lingodotdev/lingo.dev/commit/3dd04bd937828c16862b2b1459576931028bb01a) Thanks [@vrcprl](https://github.com/vrcprl)! - Fix ICU input
8+
39
## 0.116.3
410

511
### Patch Changes

packages/cli/demo/xcode-xcstrings-v2/example.xcstrings

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -126,22 +126,22 @@
126126
}
127127
}
128128
}
129-
},
130-
"welcome_message" : {
131-
"comment" : "Welcome message shown on the app's home screen",
132-
"extractionState" : "manual",
133-
"localizations" : {
134-
"en" : {
135-
"stringUnit" : {
136-
"state" : "translated",
137-
"value" : "Hello, world!"
138-
}
139-
},
140-
"es" : {
141-
"stringUnit" : {
142-
"state" : "translated",
143-
"value" : "¡Hola, mundo!"
144-
}
129+
}
130+
},
131+
"welcome_message" : {
132+
"comment" : "Welcome message shown on the app's home screen",
133+
"extractionState" : "manual",
134+
"localizations" : {
135+
"en" : {
136+
"stringUnit" : {
137+
"state" : "translated",
138+
"value" : "Hello, world!"
139+
}
140+
},
141+
"es" : {
142+
"stringUnit" : {
143+
"state" : "translated",
144+
"value" : "¡Hola, mundo!"
145145
}
146146
}
147147
}

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.116.3",
3+
"version": "0.116.4",
44
"description": "Lingo.dev CLI",
55
"private": false,
66
"publishConfig": {

packages/cli/src/cli/cmd/i18n.ts

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ import createProcessor from "../processor";
3636
import { withExponentialBackoff } from "../utils/exp-backoff";
3737
import trackEvent from "../utils/observability";
3838
import { createDeltaProcessor } from "../utils/delta";
39-
import { isICUPluralObject } from "../loaders/xcode-xcstrings-icu";
4039

4140
export default new Command()
4241
.command("i18n")
@@ -492,18 +491,11 @@ export default new Command()
492491
.omitBy((value, key) => {
493492
const targetValue = targetData[key];
494493

495-
// For ICU plural objects, use deep equality (excluding Symbol)
496-
if (
497-
isICUPluralObject(value) &&
498-
isICUPluralObject(targetValue)
499-
) {
500-
return _.isEqual(
501-
{ icu: value.icu, _meta: value._meta },
502-
{ icu: targetValue.icu, _meta: targetValue._meta },
503-
);
494+
// For objects (like plural variations), use deep equality
495+
// For primitives (strings, numbers), use strict equality
496+
if (typeof value === "object" && value !== null) {
497+
return _.isEqual(value, targetValue);
504498
}
505-
506-
// Default strict equality for other values
507499
return value === targetValue;
508500
})
509501
.size()

packages/cli/src/cli/loaders/_types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@ export interface ILoader<I, O, C = void> extends ILoaderDefinition<I, O, C> {
2323
init(): Promise<C>;
2424
pull(locale: string, input: I): Promise<O>;
2525
push(locale: string, data: O): Promise<I>;
26-
pullHints(originalInput: I): Promise<O | undefined>;
26+
pullHints(originalInput?: I): Promise<O | undefined>;
2727
}

0 commit comments

Comments
 (0)