Returns current culture

This commit is contained in:
Joseph An 2016-11-08 08:06:28 -08:00
parent d207c503a7
commit 97d27b95c2
2 changed files with 8 additions and 0 deletions

View File

@ -2,6 +2,7 @@
using ReactNative.Collections;
using System;
using System.Collections.Generic;
using System.Globalization;
namespace ReactNative.Modules.RNI18n
{
@ -14,5 +15,12 @@ namespace ReactNative.Modules.RNI18n
return "RNI18n";
}
}
public override GetConstants()
{
Dictionary<String, Object> constants = new Dictionary<string, object>();
constants.Add("locale", System.Globalization.CultureInfo.CurrentCulture.Name);
return constants;
}
}
}