Returns current culture
This commit is contained in:
parent
d207c503a7
commit
97d27b95c2
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
Binary file not shown.
Loading…
Reference in New Issue