class PrivateParlorXT::Localization
- PrivateParlorXT::Localization
- Reference
- Object
Overview
A container used for parsing the locale file and storing deserialized localization objects
Included Modules
- YAML::Serializable
Defined in:
private-parlor-xt/locale/localization.crConstructors
- .new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
-
.parse_locale(path : Path, language_code : String) : Localization
Parses a file corresponding to the given language_code from the locales folder
Instance Method Summary
-
#command_descriptions : CommandDescriptions
Returns the deserialized
CommandDescriptions
-
#locale : Locale
Returns the deserialized
Locale
-
#logs : Logs
Returns the deserialized
Logs
-
#replies : Replies
Returns the deserialized
Replies
Constructor Detail
def self.parse_locale(path : Path, language_code : String) : Localization
#
Parses a file corresponding to the given language_code from the locales folder