class Rosetta::Parser
- Rosetta::Parser
- Reference
- Object
Defined in:
rosetta/parser.crConstructors
Instance Method Summary
- #alternative_locales : Array(String)
- #available_locales : Array(String)
- #default_locale : String
- #error : String | Nil
-
#load! : Void
Loads and parses JSON files, then YAML files, adds them to the list of translations.
-
#parse! : String
Returns a list of self-containing translation modules.
- #path : String
- #translations : Hash(String, Hash(String, String))
Constructor Detail
def self.new(path : String, default_locale : String | Symbol, available_locales : Array(String | Symbol))
#
Instance Method Detail
def load! : Void
#
Loads and parses JSON files, then YAML files, adds them to the list of translations.