Documentation ¶
Index ¶
- Variables
- func LoadWordsConstants(lang languages.Language, resourcesDirPath string) error
- type CurrencyWords
- type DeclensionFractionalUnits
- type DeclensionNumbers
- type DigitWords
- type FractionalUnit
- type OrdinalNumbers
- type Sign
- type SlashNumberUnitPrefixes
- type UnitScalesNames
- type UnitScalesNamesToNumber
- type WordScales
- type Words
- type WordsDigit
Constants ¶
This section is empty.
Variables ¶
View Source
var WordConstants wordConstants
Functions ¶
Types ¶
type CurrencyWords ¶
type CurrencyWords struct {
Currencies map[currency.Currency]currency.CustomCurrency `yaml:"currencies"`
}
type DeclensionFractionalUnits ¶
type DeclensionFractionalUnits map[declension.Declension][constants.CountScaleNumberNameForms]string
type DeclensionNumbers ¶
type DeclensionNumbers map[declension.Declension][constants.CountDigits]digitT
type DigitWords ¶
type DigitWords struct { Units DeclensionNumbers `yaml:"units"` Tens DeclensionNumbers `yaml:"tens"` Dozens DeclensionNumbers `yaml:"dozens"` Hundreds DeclensionNumbers `yaml:"hundreds"` }
type FractionalUnit ¶
type FractionalUnit struct { FractionalUnitsDeclensions fractionalUnitsDeclensionsT `yaml:"fractionalUnitsDeclensions"` FractionalUnitsBeginning []string `yaml:"fractionalUnitsBeginning"` FractionalUnitPrefixes [constants.CountNumberNameForms]string `yaml:"fractionalUnitPrefixes"` FractionalUnitEndings DeclensionFractionalUnits `yaml:"fractionalUnitEndings"` }
type OrdinalNumbers ¶
type OrdinalNumbers struct { Units []genderOrdinalNumbersT `yaml:"units,omitempty"` Tens []genderOrdinalNumbersT `yaml:"tens,omitempty"` Dozens []genderOrdinalNumbersT `yaml:"dozens,omitempty"` Hundreds []genderOrdinalNumbersT `yaml:"hundreds,omitempty"` }
type SlashNumberUnitPrefixes ¶
type SlashNumberUnitPrefixes struct { Units [constants.CountDigits]string `yaml:"units"` Tens [constants.CountDigits]string `yaml:"tens"` Dozens [constants.CountDigits]string `yaml:"dozens"` Hundreds [constants.CountDigits]string `yaml:"hundreds"` }
type UnitScalesNames ¶
type UnitScalesNames struct { Thousands declensionUnitName `yaml:"thousands"` OtherEnding declensionUnitName `yaml:"otherEnding"` OtherBeginning []string `yaml:"otherBeginning"` }
type UnitScalesNamesToNumber ¶
type UnitScalesNamesToNumber struct {
Words WordScales
}
func NewUnitScalesNamesToNumber ¶
func NewUnitScalesNamesToNumber(usn UnitScalesNames) UnitScalesNamesToNumber
type WordScales ¶
type WordsDigit ¶
func NewWordsDigit ¶
func NewWordsDigit(dw DigitWords) WordsDigit
Source Files ¶
Click to show internal directories.
Click to hide internal directories.