generated from emilk/eframe_template
-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
Internationalization and Localization in Luminol #29
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I'd like to put this pull request on hold until new-tilemap is merged as this branch is based on it |
melody-rs
requested changes
Jul 11, 2023
A rebase of this branch is needed due to the merging of #43 |
What changed: - [rfd]: Pull strategy moved from downloading a version from crates.io to a github repository hosted by somedevfox - [i18n-embed]: Added; Provides localization APIs - [i18n-embed-fl]: Added; Compiler-time checks for `i18n-embed` - [locale-codes]: Added, temporarily; For getting native language names by their codes - [rust-embed]: Added; For embedding whole file directories into the app's executable Why? - Current version of `rfd` provides methods which accept only `&str` string types, while sdf's repository accepts anything that implements `ToString` - i18n-embed, i18n-embed-fl and locale-codes have been added for translating Luminol to other languages - rust-embed has been added to store language directories inside the application to prevent I/O errors if we were to request actual files feat: whoopsies forgot to upload the lock file
What changed: - [i18n]: Added; Module for handling internationalization and localization tasks - [i18n::LOADER]: Added; Language loader powered by Fluent Framework - [i18n::language_loader]: Added; Returns a static ref to the LOADER - [i18n::set_language]: Added; Switches current active language in the LOADER - [i18n::fl]: Added; Macro which returns the translated strings and also checks for tokens' existence compile-time
Notes: - en-AU is considered the main and a fallback language in Luminol - en-AU is an ISO 639-1 code for the Australian Dialect of English Language, also shown in UIs as "English (Australian)"
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.