public string GetLocalizedString(Localized identifier)
        {
            var strIdent    = identifier.ToString();
            var translation = GetLocalizedString(strIdent);

            if (translation == strIdent)
            {
                _loggingService.Report(new LocalizationException(identifier), this);
            }
            return(translation);
        }
Example #2
0
        public string GetLocalizedString(Localized enumIdentifier)
        {
            var identifier      = enumIdentifier.ToString().Replace('_', '.');
            var localizedString = GetLocalizedString(identifier);

            if (localizedString.IsNullOrEmpty())
            {
                _loggingService.Report(new LocalizationException(enumIdentifier), this);
            }
            return(localizedString);
        }
Example #3
0
 public string GetLocalizedString(Localized identifier) => identifier.ToString();