Skip to content

feat!: redesign API for v2 with per-locale files and fs.FS - #4

Merged
behzadsh merged 2 commits into
mainfrom
develop
Jun 4, 2026
Merged

feat!: redesign API for v2 with per-locale files and fs.FS#4
behzadsh merged 2 commits into
mainfrom
develop

Conversation

@behzadsh

@behzadsh behzadsh commented Jun 4, 2026

Copy link
Copy Markdown
Owner

Replace key-per-locale YAML/JSON format with one file per locale. Introduce Translator struct (New + Translate/TranslateBy), pluggable decoder registry (WithDecoder), and io/fs-based loading. Package-level Trans/TransBy backed by SetDefault. Drop old dictionary/functions/ translator packages. Update CI to Go 1.21-1.26 matrix and bump all action versions.

BREAKING CHANGE: import path is now github.com/behzadsh/go.localization/v2

behzadsh added 2 commits June 4, 2026 20:35
Replace key-per-locale YAML/JSON format with one file per locale.
Introduce Translator struct (New + Translate/TranslateBy), pluggable
decoder registry (WithDecoder), and io/fs-based loading. Package-level
Trans/TransBy backed by SetDefault. Drop old dictionary/functions/
translator packages. Update CI to Go 1.21-1.26 matrix and bump all
action versions.

BREAKING CHANGE: import path is now github.com/behzadsh/go.localization/v2
@behzadsh
behzadsh merged commit 11fc760 into main Jun 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant