Y18N v1.0.0 Orisons.Y18N.Parser View Source

Module parse .yaml files and store translations in ets table, also contain functions to get translations from same ets table.

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor

Get current language from application config

Get current language from Plug.Conn session with key :orisons_y18n_session

Get translation of string in language specified in config

Get translation of string in specific language

Get plural translation of string in language specified in config

Get plural translation of string in specific language

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Get current language from application config

Get current language from Plug.Conn session with key :orisons_y18n_session

Get translation of string in language specified in config

Link to this function get_translation(string, lang) View Source

Get translation of string in specific language

Link to this function get_translation_plural(string, string_plural, count) View Source

Get plural translation of string in language specified in config

Link to this function get_translation_plural(string, string_plural, count, lang) View Source

Get plural translation of string in specific language