Skip to content

Commit 5ca088e

Browse files
authored
🤝 Merge pull request #5 from Instabug/custom/dutch_locale
Custom/dutch locale
2 parents 5bfd6fa + b32b063 commit 5ca088e

File tree

5 files changed

+9
-1
lines changed

5 files changed

+9
-1
lines changed

android/src/main/java/com/instabug/reactlibrary/RNInstabugReactnativeModule.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ public class RNInstabugReactnativeModule extends ReactContextBaseJavaModule {
7070
private final String LOCALE_CHINESE_SIMPLIFIED = "chinesesimplified";
7171
private final String LOCALE_CHINESE_TRADITIONAL = "chinesetraditional";
7272
private final String LOCALE_CZECH = "czech";
73+
private final String LOCALE_DUTCH= "dutch";
7374
private final String LOCALE_ENGLISH = "english";
7475
private final String LOCALE_FRENCH = "french";
7576
private final String LOCALE_GERMAN = "german";
@@ -1437,6 +1438,9 @@ private Locale getLocaleByKey(String instabugLocale) {
14371438
case LOCALE_ENGLISH:
14381439
return new Locale(InstabugLocale.ENGLISH.getCode(), InstabugLocale.ENGLISH
14391440
.getCountry());
1441+
case LOCALE_DUTCH:
1442+
return new Locale(InstabugLocale.NETHERLANDS.getCode(), InstabugLocale.NETHERLANDS
1443+
.getCountry());
14401444
case LOCALE_CZECH:
14411445
return new Locale(InstabugLocale.CZECH.getCode(), InstabugLocale.CZECH.getCountry
14421446
());
@@ -1517,6 +1521,7 @@ public Map<String, Object> getConstants() {
15171521
constants.put("localeChineseSimplified", LOCALE_CHINESE_SIMPLIFIED);
15181522
constants.put("localeChineseTraditional", LOCALE_CHINESE_TRADITIONAL);
15191523
constants.put("localeCzech", LOCALE_CZECH);
1524+
constants.put("localeDutch", LOCALE_DUTCH);
15201525
constants.put("localeEnglish", LOCALE_ENGLISH);
15211526
constants.put("localeFrench", LOCALE_FRENCH);
15221527
constants.put("localeGerman", LOCALE_FRENCH);

index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1004,6 +1004,7 @@ module.exports = {
10041004
chineseTraditional: Instabug.localeChineseTraditional,
10051005
czech: Instabug.localeCzech,
10061006
danish: Instabug.localeDanish,
1007+
dutch: Instabug.localeDutch,
10071008
english: Instabug.localeEnglish,
10081009
french: Instabug.localeFrench,
10091010
german: Instabug.localeGerman,

ios/RNInstabug/InstabugReactBridge.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,7 @@ - (NSDictionary *)constantsToExport
434434
@"localeChineseTraditional": @(IBGLocaleChineseTraditional),
435435
@"localeCzech": @(IBGLocaleCzech),
436436
@"localeDanish": @(IBGLocaleDanish),
437+
@"localeDutch": @(IBGLocaleDutch),
437438
@"localeEnglish": @(IBGLocaleEnglish),
438439
@"localeFrench": @(IBGLocaleFrench),
439440
@"localeGerman": @(IBGLocaleGerman),

ios/RNInstabug/RCTConvert+InstabugEnums.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ @implementation RCTConvert (InstabugEnums)
6565
@"localeChineseTraditional": @(IBGLocaleChineseTraditional),
6666
@"localeCzech": @(IBGLocaleCzech),
6767
@"localeDanish": @(IBGLocaleDanish),
68+
@"localeDutch": @(IBGLocaleDutch),
6869
@"localeEnglish": @(IBGLocaleEnglish),
6970
@"localeFrench": @(IBGLocaleFrench),
7071
@"localeGerman": @(IBGLocaleGerman),

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "instabug-reactnative",
3-
"version": "2.7.1",
3+
"version": "2.8.0",
44
"description": "React Native plugin for integrating the Instabug SDK",
55
"main": "index.js",
66
"repository": {

0 commit comments

Comments
 (0)