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

Feature Requests: string[] GetAvailableLanguages() AND AddTranslation(...) #26

Open
JRC86 opened this issue Apr 24, 2020 · 0 comments
Open

Comments

@JRC86
Copy link

JRC86 commented Apr 24, 2020

Hello.
Great work!

string[] GetAvailableLanguages()
I'd love to get a list of available languages as a string array,
I'd use it to populate a language-selector dropdown.

AddTranslation(string key, string langCode, string? translation)
And if possible a way to add a translation for specific languages.
Example:
I have swedish and english. Let's say I wanna add a translation for the key: "COFFEE" with: AddTranslation("COFFEE","se", "Kaffe");
The english translation would just get the key (no empty strings.)

Perhaps a function that would add multple translations
AddTranslations (string key, string[] languages, string[] translations)
example:
AddTranslations("COFFEE", ["en","sv","fi","de"],["Coffee","Kaffe","Kahvi","Kaffee" ])

/Jonas

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