Skip to content
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

Add support for I18n keyword arguments #15

Merged
merged 1 commit into from
Apr 23, 2024

Conversation

jorg-vr
Copy link
Contributor

@jorg-vr jorg-vr commented Mar 21, 2023

This pull request adds support for keyword arguments to the I18n t and l functions.

Keyword arguments have been possible since ruby 3 and are used in the official documentation: https://guides.rubyonrails.org/i18n.html

Example code that causes issues in practice if I would use the t function:
https://github.com/dodona-edu/dodona/pull/4498/files#diff-0766148eceb8a6184a8e7a699244d5530c9c7356f76c836dbfa26d2ebae6266dR10

With the corresponding test:
https://github.com/dodona-edu/dodona/pull/4498/files#diff-dea6d8d9142890f588e2d37054543b932f1853e0936fbe34e0beedabd73bdeaeR11

@fnando fnando merged commit ba302a4 into fnando:main Apr 23, 2024
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.

2 participants