Skip to content

Commit 921e7fa

Browse files
Version Packages
1 parent 3f17ed1 commit 921e7fa

File tree

37 files changed

+234
-75
lines changed

37 files changed

+234
-75
lines changed

.changeset/gentle-sites-act.md

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

.changeset/incremental-lix-sync.md

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

.changeset/nasty-otters-greet.md

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

.changeset/parse5-portability.md

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

.changeset/set-locale-options.md

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

inlang/packages/cli/CHANGELOG.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,33 @@
11
# @inlang/cli
22

3+
## 3.1.0
4+
5+
### Minor Changes
6+
7+
- 7791be7: Upgraded the [inlang SDK](https://github.com/opral/inlang-sdk) to [Lix](https://lix.dev/) v0.5 🎉
8+
9+
## Highlights
10+
11+
### Writing directly to Lix state
12+
13+
State is now written straight into Lix instead of the SDK’s private in-memory SQLite snapshot. Every bundle, message, and variant change becomes a first-class Lix commit, unlocking:
14+
15+
- history and branching,
16+
- writer-key aware workflows,
17+
- change proposals and subscriptions, and
18+
- a single source of truth for downstream tools.
19+
20+
### Per-file filesystem sync
21+
22+
Any inlang-based tooling that opens a project from disk (IDE extensions, CLIs, custom apps) used to patch the entire locale tree whenever a single message changed. That behaviour is at the heart of [opral/inlang-sherlock#173](https://github.com/opral/inlang-sherlock/issues/173) where editing one key in `en.json` would re-export every other locale file, destroying manual formatting or reintroducing stale content.
23+
24+
Thanks to Lix v0.5’s observable state and writer-key APIs we can now react to per-commit metadata and suppress our own writes. When `happy_elephant` in `en.json` is updated, the SDK marks only `en.json` as dirty, leaving `de.json` and friends untouched. Drift is still possible if another tool rewrites `en.json`, yet the blast radius falls from “the whole project just changed” to “only the file you touched,” making reviews and merges manageable across all inlang integrations.
25+
26+
### Patch Changes
27+
28+
- Updated dependencies [7791be7]
29+
- @inlang/sdk@3.0.0
30+
331
## 3.0.12
432

533
### Patch Changes

inlang/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": "@inlang/cli",
3-
"version": "3.0.12",
3+
"version": "3.1.0",
44
"private": false,
55
"publishConfig": {
66
"access": "public"

inlang/packages/paraglide/paraglide-js/CHANGELOG.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,46 @@
11
# @inlang/paraglide-js
22

3+
## 2.4.0
4+
5+
### Minor Changes
6+
7+
- 7791be7: Upgraded the [inlang SDK](https://github.com/opral/inlang-sdk) to [Lix](https://lix.dev/) v0.5 🎉
8+
9+
## Highlights
10+
11+
### Writing directly to Lix state
12+
13+
State is now written straight into Lix instead of the SDK’s private in-memory SQLite snapshot. Every bundle, message, and variant change becomes a first-class Lix commit, unlocking:
14+
15+
- history and branching,
16+
- writer-key aware workflows,
17+
- change proposals and subscriptions, and
18+
- a single source of truth for downstream tools.
19+
20+
### Per-file filesystem sync
21+
22+
Any inlang-based tooling that opens a project from disk (IDE extensions, CLIs, custom apps) used to patch the entire locale tree whenever a single message changed. That behaviour is at the heart of [opral/inlang-sherlock#173](https://github.com/opral/inlang-sherlock/issues/173) where editing one key in `en.json` would re-export every other locale file, destroying manual formatting or reintroducing stale content.
23+
24+
Thanks to Lix v0.5’s observable state and writer-key APIs we can now react to per-commit metadata and suppress our own writes. When `happy_elephant` in `en.json` is updated, the SDK marks only `en.json` as dirty, leaving `de.json` and friends untouched. Drift is still possible if another tool rewrites `en.json`, yet the blast radius falls from “the whole project just changed” to “only the file you touched,” making reviews and merges manageable across all inlang integrations.
25+
26+
### Patch Changes
27+
28+
- 4a48c07: fix: fix eslint incorrectly linting generated files
29+
30+
closes https://github.com/opral/inlang-paraglide-js/issues/558
31+
32+
eslint ignores single-line 'eslint-disable' comments at the start of a file.
33+
Using a block comment without a closing one instead will prompt eslint to ignore it.
34+
35+
```diff
36+
- output[filename] = `// eslint-disable\n${content}`;
37+
+ output[filename] = `/* eslint-disable */\n${content}`;
38+
```
39+
40+
- 4c8921f: Fixes `overwriteSetLocale` to keep the full `(locale, options?)` signature when overriding `setLocale`, preventing TypeScript from rejecting calls that pass `{ reload: false }`. Adds a regression test ensuring custom handlers receive the options object.
41+
- Updated dependencies [7791be7]
42+
- @inlang/sdk@3.0.0
43+
344
## 2.3.2
445

546
### Patch Changes
@@ -28,6 +69,7 @@
2869
This change introduces a new `extractLocaleFromRequestAsync` function that supports asynchronous custom server strategies, enabling use cases like fetching user locale preferences from databases.
2970

3071
## What's Changed
72+
3173
- **New Function**: Added `extractLocaleFromRequestAsync` that supports async custom server strategies
3274
- **Middleware Update**: Server middleware now uses the async version to support async custom strategies
3375
- **Breaking Change**: The synchronous `extractLocaleFromRequest` no longer supports custom server strategies
@@ -96,6 +138,7 @@
96138
```
97139

98140
**Migration**:
141+
99142
- If you want the previous behavior (subdomain sharing), explicitly set `cookieDomain` in your configuration:
100143

101144
```diff
@@ -113,6 +156,7 @@
113156
- 4255bd5: Provide functions for getting the preferred language on server and client.
114157

115158
This defines two new functions for getting the preferred language:
159+
116160
- `extractLocaleFromHeader`: Extracts the locale from the accept-language header on the server.
117161
- `extractLocaleFromNavigator`: Extracts the locale from the navigator.languages array on the client.
118162

@@ -124,10 +168,12 @@
124168
This introduces a new way to define custom locale resolution strategies alongside built-in strategies. Custom strategies provide a cleaner, more composable approach compared to overwriting `getLocale()` and `setLocale()` functions directly.
125169

126170
**New APIs:**
171+
127172
- `defineCustomClientStrategy()`: Define custom strategies for client-side locale resolution
128173
- `defineCustomServerStrategy()`: Define custom strategies for server-side locale resolution
129174

130175
**Key features:**
176+
131177
- Custom strategies must follow the pattern `custom-<name>` where `<name>` contains only alphanumeric characters
132178
- Can be combined with built-in strategies in the strategy array
133179
- Respect strategy order for fallback handling
@@ -250,6 +296,7 @@
250296
- 698b9a9: add `cookieMaxAge` option to compiler and runtime
251297
252298
Closes https://github.com/opral/inlang-paraglide-js/issues/483
299+
253300
- Introduced `cookieMaxAge` option to `CompilerOptions`, allowing configuration of cookie expiration time.
254301
- Adjusted tests to verify `max-age` in cookies.
255302
@@ -968,6 +1015,7 @@ await compile({
9681015
- 14d80b3: Removed the "Which tech-stack are you using?" prompt from the `init` command as it was not providing any real value. All it did was link you to the appropriate documentation.
9691016
9701017
From now on we rely on the docuemntation site to guide people to the correct documenation for their framework.
1018+
9711019
- SvelteKit: https://inlang.com/m/dxnzrydw/paraglide-sveltekit-i18n
9721020
- NextJs: https://inlang.com/m/osslbuzt/paraglide-next-i18n
9731021
- Astro: https://inlang.com/m/iljlwzfs/paraglide-astro-i18n

inlang/packages/paraglide/paraglide-js/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@inlang/paraglide-js",
33
"type": "module",
4-
"version": "2.3.2",
4+
"version": "2.4.0",
55
"license": "MIT",
66
"publishConfig": {
77
"access": "public",

inlang/packages/plugins/i18next/CHANGELOG.md

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

3+
## 6.0.12
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [7791be7]
8+
- @inlang/sdk@3.0.0
9+
310
## 6.0.11
411

512
### Patch Changes

0 commit comments

Comments
 (0)