feat(locale): Loading locale file for translation with bevy assets loader #20

Open
vym wants to merge 1 commit from feat/supporting-multilanguage into master
Collaborator
  • Add the crate bevy assets loader for loading JSON
  • Create locales json with translations
  • Implement a trait for searching a key in "database" with an EN fallback

Closed #17

- Add the crate bevy assets loader for loading JSON - Create locales json with translations - Implement a trait for searching a key in "database" with an EN fallback > Closed #17
@ -0,0 +19,4 @@
pub fn get_translation<'a>(
&self,
translations: &'a Assets<Translation>,
key: &'a str,
Owner

impl AsRef c'est pour la key la c'est mieux

impl AsRef<str> c'est pour la key la c'est mieux
This pull request has changes conflicting with the target branch.
  • Cargo.lock
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin feat/supporting-multilanguage:feat/supporting-multilanguage
git switch feat/supporting-multilanguage
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
floride/bevy_template!20
No description provided.