Repository navigation
Release - #5
Merged
Merged
Release#5
Conversation
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.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and publish to npm yourself or setup this action to publish automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@javaabu/i18n@0.1.0
Minor Changes
__(),trans()andtrans_choice()with the same API and output as Laravel, locale detection from the page, loaders for Laravel JS Localization, JSON, gettext, XLIFF, properties and ARB files, RTL helpers, and React, Vue, jQuery and vanilla JS bindings. Ships its docs and a Laravel Boost skill.Patch Changes
trans_choice()trims a matched form the way PHP'strim()does, keeping non-breaking and other Unicode spaces, as Laravel does.configure({ locale })andconfigure({ fallback }), including the Vue plugin's options, now tell subscribers and fetch the new locale with the loader, likesetLocale()andsetFallback(). Replacing the loader while a fetch is in flight now asks the new loader, and whatever the old one returns is ignored."0"returns the key, as Laravel's$line ?: $keydoes.'days' => ['އާދީއްތަ', 'ހޯމަ']) can be returned whole, with replacements made in every item, and their items read by index (messages.days.0), as in Laravel. An empty list falls back, and loaded lists and groups are copied rather than shared with the caller.{locale}in a loader URL is filled in, not only the first.<meta http-equiv="content-language" content="dv, en">, andnormalizeLocale()does the same foren-US,en;q=0.9. A locale with a script and region (zh-Hant-TW) now finds lines loaded for the script (zh_Hant) before the language (zh).Language:header no longer takes the next header as the locale, and entries that aren't separated by blank lines are all read instead of only the last one..propertiesfiles: a line ending in an escaped backslash (C:\\dir\\) or a comment ending in a backslash no longer swallows the next line.�) is kept as written instead of failing the whole file; JSON is only sniffed as ARB when it has@@localeor an@keymetadata object next tokey, so a Laravel JSON file with a key like@handlekeeps its groups and{x}text; and a malformeddata-trans-replaceis logged and ignored instead of stoppingtranslateDom()partway through the page.