-
-
Notifications
You must be signed in to change notification settings - Fork 343
feat: Custom formats for useExtracted, consistency fixes for file references, pruning of messages and sorting of keys
#2155
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Changes from all commits
Commits
Show all changes
135 commits
Select commit
Hold shift + click to select a range
b73586f
fix: Follow-up for #1573 to also handle the case when a non-default l…
amannn b44c8ef
Merge branch 'main' into canary
amannn b4de1a0
Merge remote-tracking branch 'origin/main' into canary
amannn 84fe6d0
fix: Add workaround for OpenTelemetry/Zone.js (#1718)
amannn eade8d9
Merge remote-tracking branch 'origin/main' into canary
amannn 19e339e
fix: Handle default exports correctly for `moduleResolution: 'node'` …
amannn ad6f306
fix: downgrade deps
amannn fdaddc5
fix: Patch version
amannn ad8d7c5
feat: Support stable turbo config in Next.js 15.3
amannn 5cb0f4d
Upgrade to Next.js 15.3
amannn ac88b91
Merge remote-tracking branch 'origin/main' into canary
amannn b2e2aa5
fix lint
amannn bac7310
Merge remote-tracking branch 'origin/canary' into feat/1838-stable-tu…
amannn 58b4a57
fix: Support stable Turbopack config (#1849)
amannn 79fdcdc
Handle case if using experimental turbo config
amannn 6918a47
Merge branch 'feat/1838-stable-turbo-config' into canary
amannn d5ffd72
Merge remote-tracking branch 'origin/main' into canary
amannn 09b34ea
feat: Add `forcePrefix` option for `redirect` and `getPathname` (#1864)
amannn e629aa8
Update packages/next-intl/src/navigation/shared/createSharedNavigatio…
amannn 69ae8e7
Wording
amannn 0b3a5c6
Merge remote-tracking branch 'origin/main' into canary
amannn 282196c
feat: Encode non-ASCII characters in pathnames returned from navigati…
amannn 69cdf47
Add test for alternate links
amannn 8172ea2
fix: Don't encode hashes in unknown pathnames
amannn c596c85
fix: Handle hashes in pathnames correctly when using `trailingSlash: …
amannn 3f78906
Merge branch 'main' into canary
amannn 025af7b
Merge branch 'canary' into fix/unknown-pathnames-encoding
amannn 4ada87c
fix: Release
amannn f4ce836
Merge remote-tracking branch 'origin/main' into canary
amannn 92d8a58
fix: Ensure cookie is synced before navigation with `useRouter` (#1946)
amannn 7a3e132
Merge branch 'main' into canary
amannn f0249be
fix: Trusted publishers
amannn f500482
Merge remote-tracking branch 'origin/main' into canary
amannn 2b3a9ce
feat: Add `useExtracted` (experimental) (#2078)
amannn 5dfd0f5
Minor improvement for LRU cache eviction
amannn d29ce7b
plugin reference docs
amannn c8efecc
fix script
amannn e7eb9dd
fix: keep ids used in other files
amannn e99a61d
docs
amannn 4481378
blog post draft
amannn 75ea108
Merge remote-tracking branch 'origin/main' into canary
amannn d478b4e
post wording updates
amannn 0ba5a18
more robust meta parsing for po parser
amannn 75af761
fix: don't export _useExtracted
amannn 1d5dd9f
size
amannn 2070129
fix test
amannn 2bb68f8
finalize blog article
amannn 7e95eb2
docs finishing touches
amannn 79f89da
styling fix
amannn 1c7309e
fix(useExtracted): Handle source maps
amannn 4de0271
Merge remote-tracking branch 'origin/main' into canary
amannn a20b694
Refactor: Rename 'source' to 'code' in extractor
cursoragent 9fbf9d2
Refactor: Rename 'code' parameter to 'source' for clarity
cursoragent 96a26af
fix(useExtracted): Ensure deterministic translation key order (#2091)
amannn afa0598
fix(useExtracted): Filter common directories from `srcPath`, if not e…
amannn 13ce943
pass more options
amannn 00e2a17
fix: Allow passing a read-only array as `locales` (#2100)
amannn e182109
Merge remote-tracking branch 'origin/main' into canary
amannn 3e3648d
fix(useExtracted): Fix inconsistent translation message ordering (#2101)
amannn 8f1d542
fix: Release
amannn 89a45c9
initialize SWC plugin
kdy1 85ab9dc
Update swc/core
kdy1 6f91e11
Cargo workspace
kdy1 f6d5d92
emit results
kdy1 16d064f
TODO
kdy1 e954e18
TODos
kdy1 de232ff
Well
kdy1 7794c5b
fmt
kdy1 29b634c
rename_all
kdy1 8cb9cb7
filePath
kdy1 377c425
Fix hardcoded
kdy1 a9467ff
Add a rust test
kdy1 6fe148e
fix callee rewrite
kdy1 f79deb3
Update test refs
kdy1 817088d
Remove dbg!
kdy1 a16a0a2
Fix syntax context
kdy1 7b5c870
lint
kdy1 ef6f4f7
Update tests
amannn cf8b3d8
Merge remote-tracking branch 'origin/main' into canary
amannn 2b10e99
fix: Move implementation of `POParser` to `po-parser` (#2113)
amannn 5fe7d7d
Latest `@swc/core`
amannn dec3fab
Merge remote-tracking branch 'origin/main' into fix/useextracted-sour…
amannn 77b4fa9
Merge branch 'canary' into fix/useextracted-sourcemap
amannn a262b53
some cleanup
amannn ffae195
Refactor: Consolidate MessageExtractor tests into integration suite
cursoragent c00832d
Refactor: Remove unused MessageExtractor tests
cursoragent dc2c0f5
clean up tests
amannn 302bd06
clean up swc tests
amannn 2b8d5be
fix(useExtracted): Migrate message extractor tests to Rust (#2118)
amannn f1262db
packaging
amannn efcb065
contributors
amannn 30ebbce
Merge branch 'cursor/migrate-message-extractor-tests-to-rust-514e' in…
amannn b6ff530
wip
amannn 95a6881
swc config for turbo
amannn b96687a
cleanup
amannn 2403765
cleanup
amannn eef4d5c
wip
amannn 6f0d640
public
amannn b440b3e
rename
amannn 677837a
test turbo caching
amannn c36123a
fix: Move AST transformer of `useExtracted` to SWC plugin & handle so…
amannn 5af53d4
fix: update ci script
amannn 4dfc91a
Merge branch 'fix/useextracted-sourcemap' into canary
amannn 0c55fd4
fix: release
amannn 78767ee
Merge remote-tracking branch 'origin/main' into canary
amannn 8d81357
fix: Handle race condition when detecting locale changes which could …
amannn ee70d3b
fix: Don't depend on environment locale for sorting of keys with `use…
amannn 94d7fae
fix: Retain .po flags for `useExtracted` and update `po-parser` to fi…
amannn a6a334e
Merge remote-tracking branch 'origin/main' into canary
amannn 873c3af
fix: Append newline with `.json` formatter for `useExtracted` (#2148)
amannn 1ccdee0
fix: Handle multiple calls to `useTranslations` and `useExtracted` (#…
amannn 067b6e7
fix: Conflate existing `useTranslations` import for `useExtracted` (#…
amannn 839c94e
test: Fix flaky `useExtracted` test (#2151)
amannn 3362faf
Merge remote-tracking branch 'origin/main' into canary
amannn 3ad9bf4
fix: Fail loud if messages can't be read for usage with `useExtracted…
amannn 03d4f28
fix: Try trusted publishers
amannn a3dd55e
fix: update lerna lite and conventional-changelog-conventionalcommits
amannn 028d37a
fix: no prevenance, log npm version
amannn dd24f9d
fix: flip some flags
amannn bcf7147
fix: minor fixes
amannn fb5f78a
fix: revert some stuff
amannn 65289bd
fix: cleanup
amannn 853114a
fix: one more
amannn 683476f
feat: Custom formats for `useExtracted` (#2158)
amannn 38e3f96
Merge branch 'main' into canary
amannn 6876534
fix: Handle messages with namespaces and with dots in message correct…
amannn 632693c
fix: Improve dot escaping in regex
amannn 1ef30f5
fix: Stable `po-parser@2`
amannn 658487e
fix: Update references of `useExtracted` after renames / deletions (#…
amannn 62e3004
fix: Prune unused messages from `useExtracted` (during build) (#2169)
amannn 919a0e3
fix: Prune unused messages from `useExtracted` (during `dev`) (#2170)
amannn d4f4cde
fix: thanks cursor
amannn 63b8301
fix: Cleanup custom formats for `useExtracted` (#2173)
amannn 1cc54ff
fix: Another source of inconsistency fixed
amannn d43359c
fix: Early bailout
amannn File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
examples/example-app-router-mixed-routing/playwright.config.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.