Skip to content

Suggestion for a method to initialize online translations #1

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

Open
kesparleo opened this issue Dec 10, 2024 · 0 comments
Open

Suggestion for a method to initialize online translations #1

kesparleo opened this issue Dec 10, 2024 · 0 comments

Comments

@kesparleo
Copy link

kesparleo commented Dec 10, 2024

I was thinking of a way to make the initialization of translations more flexible, especially for those who want to load translation files directly from the web.

My idea is to add a method like initializeFromUrl, which loads translations from a URL instead of relying on local files or internal resources.

It would look something like this:

  • LanguageSystem.initializeFromUrl("english", "https://example.com/languages.xml");

If possible, add a listener that will be called when the document is loaded.
What do you think of this idea?

@kesparleo kesparleo changed the title Sugestão de um método para inicialização de traduções online Suggestion for a method to initialize online translations Dec 10, 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

No branches or pull requests

1 participant