Fix class atrributes name and type

This commit is contained in:
Joseph An 2016-11-08 09:17:24 -08:00
parent b36f9cf1a7
commit 45d6d34eee
1 changed files with 7 additions and 4 deletions

View File

@ -16,11 +16,14 @@ namespace ReactNative.Modules.RNI18n
}
}
public override Dictionary<String, Object> Constants()
public override IReadOnlyDictionary<String, Object> Constants
{
Dictionary<String, Object> constants = new Dictionary<string, object>();
constants.Add("locale", System.Globalization.CultureInfo.CurrentCulture.Name);
return constants;
get
{
Dictionary<String, Object> constants = new Dictionary<string, object>();
constants.Add("locale", System.Globalization.CultureInfo.CurrentCulture.Name);
return constants;
}
}
}
}