V1.0.1#39
Merged
Starllordz merged 3 commits intomainfrom Feb 26, 2026
Merged
Conversation
* fix: restrict .ts file parsing to i18n files only ## Changed - Skip non-i18n .ts files during locale extraction to avoid parse errors on regular TypeScript files - Updated extractLocaleFromPath and extractAllLocalesFromProject to match only `i18n.ts` files ## New - Tests for non-i18n .ts file filtering in both extraction functions - Added .claude/ to .gitignore * fix: added checks for non i18n files in locale directory * refactor: replace `any` with proper type assertions in tests ## Changed - Replace `as any` with `as unknown as ParserFactory` for mock parser arguments in checksum tests - Replace `as any` with `as unknown as void` for mock implementations in checksum and locale tests - Replace `as any` with `as unknown as Record<string, unknown>` for edge-case inputs in parser tests - Replace `as any` with `as unknown` for mock return values in locale tests Made-with: Cursor * fix: improved ts files recognition for patterns xx-i18n.ts
* fix: prevent deletion of keys containing "/" ## Changed - Use null byte (\0) as internal flat/unflatten delimiter instead of "/" - Convert flattened keys back to "/" for user-facing pattern matching (lockedKeys, ignoredKeys, keyInstructions) - Update locale extraction to split on null byte delimiter ## New - Tests verifying keys with "/" (e.g. "harassment/threatening") survive parse/serialize round-trip * refactor: deduplicate delimiter conversion logic ## Changed - Extract toUserKey() helper for \0 → "/" key conversion - Compute user-facing key once per key in translation loop - Update JSDoc examples to reflect \0 delimiter
## Changed - Updated version in package.json from 1.0.0 to 1.0.1 - Updated version badge in README.md to 1.0.1
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Release v1.0.1 — Bug fixes for key deletion and TS file parsing
Summary
/(e.g.date/format) were incorrectly deleted duringtranslation, as
/was being used as the internal key separator.tsfile parsing being applied to all TypeScript files instead of only i18n translationfiles
Details
/with the null character (\0) as the internal flat-key separator to avoid conflictswith keys that legitimately contain
/