class PrivateParlorXT::Localization

Overview

A container used for parsing the locale file and storing deserialized localization objects

Included Modules

Defined in:

private-parlor-xt/locale/localization.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(ctx : YAML::ParseContext, node : YAML::Nodes::Node) #

[View source]
def self.parse_locale(path : Path, language_code : String) : Localization #

Parses a file corresponding to the given language_code from the locales folder


[View source]

Instance Method Detail

def command_descriptions : CommandDescriptions #

Returns the deserialized CommandDescriptions


[View source]
def locale : Locale #

Returns the deserialized Locale


[View source]
def logs : Logs #

Returns the deserialized Logs


[View source]
def replies : Replies #

Returns the deserialized Replies


[View source]