You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -31,9 +31,9 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen
31
31
32
32
function_inherits(subClass,superClass){if(typeofsuperClass!=="function"&&superClass!==null){thrownewTypeError("Super expression must either be null or a function, not "+typeofsuperClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor: {value: subClass,enumerable: false,writable: true,configurable: true}});if(superClass)Object.setPrototypeOf ? Object.setPrototypeOf(subClass,superClass) : subClass.__proto__=superClass;}
* Check if the native module has been correctly initialized
@@ -42,25 +42,25 @@ if (!localization) {
42
42
console.error("Something went wrong initializing the native ReactNativeLocalization module.\nPlease check your configuration.\nDid you run 'react-native link'?");
43
43
}
44
44
45
-
/**
45
+
/**
46
46
* Custom Interface Language method returned by native code
47
-
*/
47
+
*/
48
48
functiongetInterfaceLanguage(){
49
-
returnlocalization.language.replace(/_/g,'-');
49
+
returnlocalization.language.replace(/_/g,"-");
50
50
}
51
51
52
-
/**
53
-
* Extend the react-localization class overriding the getInterfaceLanguage method
54
-
* to use the native module
55
-
*/
52
+
/**
53
+
* Extend the react-localization class overriding the getInterfaceLanguage method
* Check if the native module has been correctly initialized
23
23
*/
24
24
if(!localization){
25
-
console.error("Something went wrong initializing the native ReactNativeLocalization module.\nPlease check your configuration.\nDid you run 'react-native link'?");
25
+
console.error(
26
+
"Something went wrong initializing the native ReactNativeLocalization module.\nPlease check your configuration.\nDid you run 'react-native link'?"
27
+
);
26
28
}
27
29
28
-
29
-
/**
30
+
/**
30
31
* Custom Interface Language method returned by native code
31
-
*/
32
-
functiongetInterfaceLanguage(){
33
-
returnlocalization.language.replace(/_/g,'-');
34
-
}
32
+
*/
33
+
functiongetInterfaceLanguage(){
34
+
returnlocalization.language.replace(/_/g,"-");
35
+
}
35
36
36
-
/**
37
-
* Extend the react-localization class overriding the getInterfaceLanguage method
0 commit comments