Skip to content

Add new function put_locale!/2 #420

Merged
maennchen merged 2 commits into
elixir-gettext:mainfrom
abdelhalim97:abdelhalim97/add-put_locale!
Sep 5, 2025
Merged

Add new function put_locale!/2 #420
maennchen merged 2 commits into
elixir-gettext:mainfrom
abdelhalim97:abdelhalim97/add-put_locale!

Conversation

@abdelhalim97

@abdelhalim97 abdelhalim97 commented Aug 31, 2025

Copy link
Copy Markdown
Contributor

Changes

  • Enhancing documentation for put_locale/2
  • Add new function put_locale!/2 inspired from put_locale/2 only difference that if unsupported locale is introduced it wil raise error

Important

Got constructive feedback from this PR

@abdelhalim97 abdelhalim97 force-pushed the abdelhalim97/add-put_locale! branch from 3cc444b to b015158 Compare August 31, 2025 23:03
@abdelhalim97 abdelhalim97 marked this pull request as ready for review August 31, 2025 23:05
@whatyouhide

Copy link
Copy Markdown
Contributor

@maennchen thoughts here? I’m ok with this.

Comment thread lib/gettext.ex Outdated
@maennchen

Copy link
Copy Markdown
Member

@abdelhalim97 Thanks for the PR ❤️

@whatyouhide Besides the small nit above, this looks like a good improvement.

@coveralls

coveralls commented Sep 2, 2025

Copy link
Copy Markdown

Pull Request Test Coverage Report for Build 8af5c394b96ab515b8b4784ae9b945b640af52cb-PR-420

Details

  • 5 of 7 (71.43%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.2%) to 92.308%

Changes Missing Coverage Covered Lines Changed/Added Lines %
lib/gettext.ex 5 7 71.43%
Totals Coverage Status
Change from base Build f436de77e5964fa5eb23838b8f97a2925c0c830a: -0.2%
Covered Lines: 648
Relevant Lines: 702

💛 - Coveralls

@abdelhalim97 abdelhalim97 force-pushed the abdelhalim97/add-put_locale! branch from b015158 to 8af5c39 Compare September 4, 2025 13:30
@abdelhalim97

Copy link
Copy Markdown
Contributor Author

Done 🫡
Thanks for your review

@maennchen maennchen merged commit 962426d into elixir-gettext:main Sep 5, 2025
3 checks passed
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.

4 participants