MCPcopy Create free account
hub / github.com/reactnativecn/react-native-update / getLocale

Method getLocale

src/i18n.ts:25–27  ·  view source on GitHub ↗

* Get current locale

()

Source from the content-addressed store, hash-verified

23 * Get current locale
24 */
25 getLocale(): 'zh' | 'en' {
26 return this.currentLocale;
27 }
28
29 /**
30 * Translate a key with optional interpolation

Callers 1

i18n.test.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected