public void Add(CldrLocale locale, string path, int valueId)
        {
            var treePath = CldrTreePath.Parse(path);
            var localeId = this.Locales.GetId(locale ?? CldrLocale.None);

            this.Root.Add(localeId, treePath, valueId);
        }
Beispiel #2
0
        public string GetValue(CldrLocale locale)
        {
            var localeId = this.Tree.Locales.GetId(locale);
            var valueId  = this.LocaleValues[localeId];
            var value    = this.Tree.Values[valueId];

            return(value);
        }
Beispiel #3
0
 /// <summary>
 /// Traverses the CLDR tree using a path and gets the value
 /// associated with the specified locale.
 /// </summary>
 public string GetValue(string path, CldrLocale locale)
 {
     return(this.Tree.SelectNode(path).GetValue(locale));
 }