@@ -223,7 +223,7 @@ or npm
223223npm install react-native-localize @formatjs/intl-pluralrules @formatjs/intl-getcanonicallocales @formatjs/intl-listformat @formatjs/intl-displaynames @formatjs/intl-locale @formatjs/intl-datetimeformat @formatjs/intl-numberformat @formatjs/intl-relativetimeformat --save
224224```
225225
226- In your app starting entrypoint e.g. ` ./index.js `
226+ In your app starting entrypoint e.g. ` ./index.js ` or even better use a ` index.android.js ` to prevent importing on iOS/web put the following code. (don't forget to import the languages you want to support, in the example only english language is supported)
227227
228228``` javascript
229229// on top of your index.js file
@@ -235,22 +235,22 @@ if (isHermesEnabled || isAndroid) {
235235 require (' @formatjs/intl-getcanonicallocales/polyfill' );
236236
237237 require (' @formatjs/intl-pluralrules/polyfill' );
238- require (' @formatjs/intl-pluralrules/locale-data/nl .js' ); // use your language files
238+ require (' @formatjs/intl-pluralrules/locale-data/en .js' ); // USE YOUR OWN LANGUAGE OR MULTIPLE IMPORTS YOU WANT TO SUPPORT
239239
240240 require (' @formatjs/intl-relativetimeformat/polyfill' );
241- require (' @formatjs/intl-relativetimeformat/locale-data/nl .js' ); // use your language files
241+ require (' @formatjs/intl-relativetimeformat/locale-data/en .js' ); // USE YOUR OWN LANGUAGE OR MULTIPLE IMPORTS YOU WANT TO SUPPORT
242242
243243 require (' @formatjs/intl-listformat/polyfill' );
244- require (' @formatjs/intl-listformat/locale-data/nl .js' ); // use your language files
244+ require (' @formatjs/intl-listformat/locale-data/en .js' ); // USE YOUR OWN LANGUAGE OR MULTIPLE IMPORTS YOU WANT TO SUPPORT
245245
246246 require (' @formatjs/intl-displaynames/polyfill' );
247- require (' @formatjs/intl-displaynames/locale-data/nl .js' ); // use your language files
247+ require (' @formatjs/intl-displaynames/locale-data/en .js' ); // USE YOUR OWN LANGUAGE OR MULTIPLE IMPORTS YOU WANT TO SUPPORT
248248
249249 require (' @formatjs/intl-numberformat/polyfill' );
250- require (' @formatjs/intl-numberformat/locale-data/nl .js' ); // use your language files
250+ require (' @formatjs/intl-numberformat/locale-data/en .js' ); // USE YOUR OWN LANGUAGE OR MULTIPLE IMPORTS YOU WANT TO SUPPORT
251251
252252 require (' @formatjs/intl-datetimeformat/polyfill' );
253- require (' @formatjs/intl-datetimeformat/locale-data/nl .js' ); // use your language files
253+ require (' @formatjs/intl-datetimeformat/locale-data/en .js' ); // USE YOUR OWN LANGUAGE OR MULTIPLE IMPORTS YOU WANT TO SUPPORT
254254
255255 require (' @formatjs/intl-datetimeformat/add-golden-tz.js' );
256256
0 commit comments