@undp/carbon-library 1.0.157-CARBON-339.1 → 1.0.157-CARBON-339.2
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/index.js +0 -46
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/Components/index.d.ts +0 -1
- package/dist/esm/index.js +0 -46
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/Components/index.d.ts +0 -1
- package/dist/index.d.ts +0 -1
- package/package.json +1 -1
- package/dist/cjs/types/Components/Internationalization/i18n.d.ts +0 -2
- package/dist/esm/types/Components/Internationalization/i18n.d.ts +0 -2
package/dist/cjs/index.js
CHANGED
@@ -12,11 +12,6 @@ var Icon = require('react-bootstrap-icons');
|
|
12
12
|
require('react-phone-number-input/style.css');
|
13
13
|
var mapboxgl = require('mapbox-gl');
|
14
14
|
require('mapbox-gl/dist/mapbox-gl.css');
|
15
|
-
var i18n = require('i18next');
|
16
|
-
var reactI18next = require('react-i18next');
|
17
|
-
var Backend = require('i18next-http-backend');
|
18
|
-
var LanguageDetector = require('i18next-browser-languagedetector');
|
19
|
-
var path = require('path');
|
20
15
|
|
21
16
|
function _interopNamespaceDefault(e) {
|
22
17
|
var n = Object.create(null);
|
@@ -26399,47 +26394,6 @@ var TimelineBody = function (props) {
|
|
26399
26394
|
React.createElement("div", { className: "remark-body" }, remark)))));
|
26400
26395
|
};
|
26401
26396
|
|
26402
|
-
var modulePath = new URL((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (document.currentScript && document.currentScript.src || new URL('index.js', document.baseURI).href))).pathname;
|
26403
|
-
var localesPath = path.join(path.dirname(path.dirname(path.dirname(modulePath))), 'src', 'locales');
|
26404
|
-
console.log("localesPath : ", localesPath);
|
26405
|
-
i18n
|
26406
|
-
.use(Backend)
|
26407
|
-
.use(LanguageDetector)
|
26408
|
-
.use(reactI18next.initReactI18next)
|
26409
|
-
.init({
|
26410
|
-
backend: {
|
26411
|
-
// translation file path
|
26412
|
-
loadPath: localesPath + '/i18n/{{ns}}/{{lng}}.json',
|
26413
|
-
},
|
26414
|
-
//NOTE - Uncomment to reset the language to english once the user coming back again
|
26415
|
-
// lng: 'en',
|
26416
|
-
fallbackLng: 'en',
|
26417
|
-
//NOTE - Disabled in production
|
26418
|
-
debug: true,
|
26419
|
-
//separate name spaces for each pages
|
26420
|
-
ns: [
|
26421
|
-
'common',
|
26422
|
-
'login',
|
26423
|
-
'dashboard',
|
26424
|
-
'nav',
|
26425
|
-
'company',
|
26426
|
-
'user',
|
26427
|
-
'programme',
|
26428
|
-
'view',
|
26429
|
-
'homepage',
|
26430
|
-
'ndcAction',
|
26431
|
-
'coBenifits',
|
26432
|
-
'environment',
|
26433
|
-
'genderParity',
|
26434
|
-
'safeguards',
|
26435
|
-
'social',
|
26436
|
-
'economic',
|
26437
|
-
'creditTransfer',
|
26438
|
-
'addProgramme',
|
26439
|
-
],
|
26440
|
-
});
|
26441
|
-
|
26442
|
-
exports.i18n = i18n;
|
26443
26397
|
exports.AddNdcActionComponent = AddNdcActionComponent;
|
26444
26398
|
exports.AddNewCompanyComponent = AddNewCompanyComponent;
|
26445
26399
|
exports.AddNewUserComponent = AddNewUserComponent;
|