-
Notifications
You must be signed in to change notification settings - Fork 2
chore(deps): update dependency gettext to == 0.26.2 #40
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
base: master
Are you sure you want to change the base?
Conversation
⚠ Artifact update problemRenovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is. ♻ Renovate will retry this branch, including artifacts, only when one of the following happens:
The artifact failure details are included below: File name: mix.lock |
4dfe227 to
c22b7bb
Compare
c22b7bb to
abba6ce
Compare
abba6ce to
f4dfd9f
Compare
f4dfd9f to
2f4817a
Compare
2f4817a to
0362aa5
Compare
0362aa5 to
2bbe45a
Compare
2bbe45a to
13f0068
Compare
13f0068 to
a8097e7
Compare
|
a8097e7 to
43e5a41
Compare
43e5a41 to
adb5586
Compare
adb5586 to
ebaa59b
Compare
ebaa59b to
bd7ffe8
Compare
This PR contains the following updates:
== 0.19.1->== 0.26.2Release Notes
elixir-gettext/gettext (gettext)
v0.26.2Compare Source
message and conflicting plural messages.
Gettext backend.
v0.26.1Compare Source
v0.26.0Compare Source
This release changes the way you use Gettext. We're not crazy: it does so because doing so makes it a lot faster to compile projects that use Gettext.
The changes you have to make to your code are minimal, and the old behavior is deprecated so that you will be guided on how to update.
The reason for this change is that it removes compile-time dependencies from modules that used to
importa Gettext backend. In applications such as Phoenix applications, where every view and controllerimports the Gettext backend, this change means a lot less compilation when you make translation changes!Here's the new API. Now, instead of defining a Gettext backend (
use Gettext) and thenimporting that to use its macros, you need to:use Gettext.Backenduse Gettext, backend: MyApp.Gettext.Before and After
Before this release, code using Gettext used to look something like this:
This creates a compile-time dependency for every module that
imports the Gettext backend.With this release, the above turns into:
We are also updating Phoenix generators to use the new API.
If you update Gettext and still use
use Gettext, otp_app: :my_appto define a backend, Gettext will emit a warning now.Migration with Igniter
If your project is using
igniter, you can runmix igniter.update_gettextto automatically migrate to the new API.
Detailed Changelog
This is a detailed list of the new things introduced in this release:
Gettext.Macros, which contains all the macros you know and love (*gettext). It also contains*gettext_with_backendvariants to explicitly pass a backend at compile time and keep extraction working.lgettext/5andlngettext/7callbacks inGettext.Backend. These get generated in every Gettext backend.Gettext.domain/0type.v0.25.0Compare Source
mix gettext.extract's POT files even if they are unchanged.v0.24.0Compare Source
Handle singular and plural messages with the same
msgidas the samemessage.
This change produces a
Expo.PO.DuplicateMessagesErrorif you already havemessages with the same singular
msgid. This can be solved by calling theexpo.msguniqmix task on your.pofile:v0.23.1Compare Source
v0.23.0Compare Source
:custom_flags_to_keepGettext option.v0.22.3Compare Source
v0.22.2Compare Source
Code.ensure_compiled/1instead ofCode.ensure_loaded/1for Elixir < 1.12 compatibility.mix gettext.merge.v0.22.1Compare Source
Plural-Formsheader ongettext.mergefor the first time.~> 0.4.0to fix issues with emptymsgstr.v0.22.0Compare Source
--plural-formsCLI option and the:plural_formsoption in favor of--plural-forms-headerand:plural_forms_header.Plural-Formsheader toGettext.Pluralcallbacks.~> 0.3.0.Gettext.Interpolation.bindings/0Gettext.Error.t/0Gettext.Plural.locale/0Gettext.Plural.pluralization_context/0Gettext.Plural.plural_info/0Gettext.Plural.init/1andGettext.Plural.plural_forms_header/1.Bug fixes
--check-up-to-datewithmsgids split in different ways.write_reference_line_numbers: false.v0.21.0Compare Source
New features and improvements
Bump Elixir requirement to 1.11+.
Extract parsing and dumping of PO/POT files to the
expo library, and start depending
on that.
Support marking messages as obsolete with the new
:on_obsoleteGettextconfiguration option.
Add the
:write_reference_line_numbersGettext configuration option.Save the previous messages when there's a fuzzy match, with the new
:store_previous_message_on_fuzzy_matchGettext configuration option.Change
:sort_by_msgidto acceptfalse,:case_sensitive, or:case_insensitiveand deprecate thetruevalue.Bug fixes
v0.20.0Compare Source
gettext_commentto be invoked multiple timescompile.gettextin favor of__mix_recompile__?Backwards incompatible changes
handle_missing_translation(locale, domain, msgid, bindings)callbacksignature was changed to
handle_missing_translation(locale, domain, msgctxt, msgid, bindings)(it receives a new argument calledmsgctxt)handle_missing_plural_translation(locale, domain, msgid, msgid_plural, n, bindings)callback signature was changed tohandle_missing_plural_translation(locale, domain, msgctxt, msgid, msgid_plural, n, bindings)(it receives a new argument calledmsgctxt)Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.