public string GetLocalizedString(Localized identifier) { var strIdent = identifier.ToString(); var translation = GetLocalizedString(strIdent); if (translation == strIdent) { _loggingService.Report(new LocalizationException(identifier), this); } return(translation); }
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); }
public string GetLocalizedString(Localized identifier) => identifier.ToString();