Skip to content

Commit

Permalink
Re-implmentation of #59 (a rebase and cleanup of #88)
Browse files Browse the repository at this point in the history
Adds a single new method lang.

This methods allows creating a shallow copy of the
FluentLanguageLoader which can than be used just like the original
loader but with a different current language setting. That makes it
possible to use the fl! macro without any changes and is a far more
elegant implementation than adding multiple get_lang* methods as
done in #84.

Co-authored-by: Michael P. Jung <[email protected]>
  • Loading branch information
Luke Frisken and bikeshedder committed Jan 14, 2023
1 parent 46f08a2 commit a970a24
Show file tree
Hide file tree
Showing 4 changed files with 260 additions and 224 deletions.
7 changes: 7 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions i18n-embed/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ maintenance = { status = "actively-developed" }

[dependencies]
fluent = { version = "0.16", optional = true }
arc-swap = "1.6"
fluent-langneg = "0.13"
fluent-syntax = { version = "0.11", optional = true }
gettext_system = { package = "gettext", version = "0.4", optional = true }
Expand Down
Loading

0 comments on commit a970a24

Please sign in to comment.