@commercetools-frontend/i18n 21.4.0 → 21.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2020 commercetools GmbH
3
+ Copyright (c) commercetools GmbH
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -371,6 +371,12 @@
371
371
  "value": "We are unable to authorize you to use the Merchant Center."
372
372
  }
373
373
  ],
374
+ "LocaleSwitcher.localesLabel": [
375
+ {
376
+ "type": 0,
377
+ "value": "Locales menu"
378
+ }
379
+ ],
374
380
  "NavBar.MCSupport.title": [
375
381
  {
376
382
  "type": 0,
@@ -571,10 +577,10 @@
571
577
  "value": "Sorry, but there are no projects that match your search."
572
578
  }
573
579
  ],
574
- "ProjectSwitcher.projects": [
580
+ "ProjectSwitcher.projectsLabel": [
575
581
  {
576
582
  "type": 0,
577
- "value": "Projects"
583
+ "value": "Projects menu"
578
584
  }
579
585
  ],
580
586
  "ProjectSwitcher.searchPlaceholder": [
@@ -1021,6 +1027,12 @@
1021
1027
  "value": "Logout"
1022
1028
  }
1023
1029
  ],
1030
+ "UserSettingsMenu.menuLabel": [
1031
+ {
1032
+ "type": 0,
1033
+ "value": "User settings menu"
1034
+ }
1035
+ ],
1024
1036
  "UserSettingsMenu.openMenuLabel": [
1025
1037
  {
1026
1038
  "type": 0,
@@ -43,7 +43,7 @@ var _concatInstanceProperty__default = /*#__PURE__*/_interopDefault(_concatInsta
43
43
  var _startsWithInstanceProperty__default = /*#__PURE__*/_interopDefault(_startsWithInstanceProperty);
44
44
 
45
45
  // NOTE: This string will be replaced on build time with the package version.
46
- var version = "21.4.0";
46
+ var version = "21.8.1";
47
47
 
48
48
  var extractLanguageTagFromLocale = function extractLanguageTagFromLocale(locale) {
49
49
  return _includesInstanceProperty__default["default"](locale).call(locale, '-') ? locale.split('-')[0] : locale;
@@ -43,7 +43,7 @@ var _concatInstanceProperty__default = /*#__PURE__*/_interopDefault(_concatInsta
43
43
  var _startsWithInstanceProperty__default = /*#__PURE__*/_interopDefault(_startsWithInstanceProperty);
44
44
 
45
45
  // NOTE: This string will be replaced on build time with the package version.
46
- var version = "21.4.0";
46
+ var version = "21.8.1";
47
47
 
48
48
  var extractLanguageTagFromLocale = function extractLanguageTagFromLocale(locale) {
49
49
  return _includesInstanceProperty__default["default"](locale).call(locale, '-') ? locale.split('-')[0] : locale;
@@ -12,7 +12,7 @@ import { jsx, Fragment } from '@emotion/react/jsx-runtime';
12
12
  import { defineMessages } from 'react-intl';
13
13
 
14
14
  // NOTE: This string will be replaced on build time with the package version.
15
- var version = "21.4.0";
15
+ var version = "21.8.1";
16
16
 
17
17
  var extractLanguageTagFromLocale = function extractLanguageTagFromLocale(locale) {
18
18
  return _includesInstanceProperty(locale).call(locale, '-') ? locale.split('-')[0] : locale;
@@ -1,2 +1,5 @@
1
1
  import type { Props } from './async-locale-data/async-locale-data';
2
+ import type { I18NImportData, MergedMessages } from './load-i18n';
2
3
  export declare type TAsyncLocaleDataProps = Props;
4
+ export declare type TI18NImportData = I18NImportData;
5
+ export declare type TMergedMessages = MergedMessages;
@@ -1,4 +1,6 @@
1
1
  import type { MessageFormatElement } from '@formatjs/icu-messageformat-parser';
2
- declare type MergedMessages = Record<string, string> | Record<string, MessageFormatElement[]>;
2
+ export declare type I18NImportData = {
3
+ default: Record<string, string> | Record<string, MessageFormatElement[]>;
4
+ };
5
+ export declare type MergedMessages = Record<string, string> | Record<string, MessageFormatElement[]>;
3
6
  export default function loadI18n(locale: string): Promise<MergedMessages>;
4
- export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@commercetools-frontend/i18n",
3
- "version": "21.4.0",
3
+ "version": "21.8.1",
4
4
  "description": "MC i18n messages",
5
5
  "bugs": "https://github.com/commercetools/merchant-center-application-kit/issues",
6
6
  "repository": {
@@ -34,18 +34,18 @@
34
34
  "dependencies": {
35
35
  "@babel/runtime": "^7.17.9",
36
36
  "@babel/runtime-corejs3": "^7.17.9",
37
- "@commercetools-community-kit/i18n": "^0.2.7",
38
- "@commercetools-frontend/sentry": "21.3.4",
37
+ "@commercetools-community-kit/i18n": "^0.3.0",
38
+ "@commercetools-frontend/sentry": "21.8.1",
39
39
  "@commercetools-uikit/i18n": "^15.0.0",
40
40
  "@emotion/react": "11.9.0",
41
- "@formatjs/icu-messageformat-parser": "2.0.19",
41
+ "@formatjs/icu-messageformat-parser": "2.1.0",
42
42
  "@types/prop-types": "^15.7.5",
43
43
  "@types/react": "^17.0.44",
44
44
  "moment": "^2.29.2",
45
45
  "prop-types": "15.8.1"
46
46
  },
47
47
  "devDependencies": {
48
- "@formatjs/cli": "4.8.3",
48
+ "@formatjs/cli": "4.8.4",
49
49
  "react": "17.0.2",
50
50
  "react-intl": "^5.25.0"
51
51
  },