Crate yew_translator

Source

Structs§

I18nHandler
The I18nHandler struct representing the state and methods for internationalization.
I18nProvider
Yew component for providing the YewI18n context to its children.
StringTemplaterOptions
Options for the string templater.

Enums§

StringTemplaterError
Any errors that might occurs while generating or parsing the string template.

Functions§

encode_json_to_hashmap
Parse a JSON into a hashmap with it’s path concatenated using a dot.
generate
Generate the template with options using translation and data.
parse_to_hashmap
Parse a JSON into a hashmap with it’s path concatenated using a dot.
use_translation
Hook to use the I18nHandler.