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

Improve internationalization #3228

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

joselfblanco
Copy link

@joselfblanco joselfblanco commented Sep 28, 2024

This change introduces the ability to pass a Map<String, dynamic> in the translation files, enhancing the capability to organize translations into hierarchical structures, as allowed in other frameworks. This improvement provides a more flexible and structured approach to managing translations, enabling nested and complex translation keys for better organization and maintainability.

Additionally, an example of usage has been added to demonstrate how to implement this new feature. This example showcases the hierarchical organization of translation keys, making it easier to understand and utilize the enhanced translation structure.

Before:
image

After:
image

Use:
image

@joselfblanco joselfblanco marked this pull request as draft September 29, 2024 10:16
@joselfblanco joselfblanco marked this pull request as ready for review September 29, 2024 11:14
@joselfblanco joselfblanco marked this pull request as draft October 1, 2024 23:42
@joselfblanco joselfblanco marked this pull request as ready for review October 9, 2024 02:25
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