Skip to content

v0.6.1

Choose a tag to compare

@Baptistemontan Baptistemontan released this 03 Mar 22:54
· 39 commits to master since this release

v0.6.1

Multi segment i18n routes

Now support localized path with multiple segments, meaning you can have segment_path_name = "some/path" for English, and segment_path_name = "un/chemin" for French and work as expected.

see book

Scopes marker types

You can now define marker types to use as scopes:

type SubkeysScope = define_scope!(crate::i18n, namespace.subkeys);

let scoped_locale = Locale::en.scope::<SubkeysScope>();
let scoped_i18n = i18n.scope::<SubkeysScope>();

see book

Context unification

Introduce a new opt-in feature "unified_contexts" to unify contexts, if you work with multiple i18n module you may realise that they don't share the same I18nContext and you must provide them each with their own and can be hard to synchronize. By enabling this feature you noww merge all the context together and only need to provide one for everything.

see book

What's Changed

New Contributors

Full Changelog: v0.6.0...v0.6.1