Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
majakomel committed Oct 17, 2023
1 parent 1efe0d5 commit 8e23595
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 41 deletions.
4 changes: 2 additions & 2 deletions components/measurement/SummaryText.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ const SummaryText = ({
<FormattedMarkdown id={content}
values={{
testName: `[${metadata.name}](${metadata.info})`,
network: network,
country: country,
network,
country,
date: formattedDateTime
}}
/>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"react-dom": "17.0.2",
"react-hook-form": "^7.47.0",
"react-icons": "4.4.0",
"react-intl": "^6.4.7",
"react-intl": "6.4.7",
"react-json-view": "^1.21.3",
"react-outside-click-handler": "^1.3.0",
"react-portal-tooltip": "^2.4.7",
Expand Down
5 changes: 1 addition & 4 deletions utils/i18nCountries.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,8 @@ process.env.LOCALES.forEach((locale) => {

export const getLocalisedRegionName = (regionCode, locale) => {
locale = getLocale(locale)

try {
return new Intl.DisplayNames([locale], { type: 'region' }).of(
String(regionCode)
)
return new Intl.DisplayNames([locale], { type: 'region' }).of(String(regionCode))
} catch (e) {
return regionCode
}
Expand Down
68 changes: 34 additions & 34 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1264,10 +1264,10 @@
dependencies:
tslib "^2.4.0"

"@formatjs/icu-messageformat-parser@2.7.0":
version "2.7.0"
resolved "https://registry.yarnpkg.com/@formatjs/icu-messageformat-parser/-/icu-messageformat-parser-2.7.0.tgz#9b13f2710a3b4efddfeb544480f684f27a53483b"
integrity sha512-7uqC4C2RqOaBQtcjqXsSpGRYVn+ckjhNga5T/otFh6MgxRrCJQqvjfbrGLpX1Lcbxdm5WH3Z2WZqt1+Tm/cn/Q==
"@formatjs/icu-messageformat-parser@2.6.2":
version "2.6.2"
resolved "https://registry.yarnpkg.com/@formatjs/icu-messageformat-parser/-/icu-messageformat-parser-2.6.2.tgz#9bbb29099416e4ce2c7df50029c48985d4f901b3"
integrity sha512-nF/Iww7sc5h+1MBCDRm68qpHTCG4xvGzYs/x9HFcDETSGScaJ1Fcadk5U/NXjXeCtzD+DhN4BAwKFVclHfKMdA==
dependencies:
"@formatjs/ecma402-abstract" "1.17.2"
"@formatjs/icu-skeleton-parser" "1.6.2"
Expand All @@ -1281,19 +1281,19 @@
"@formatjs/ecma402-abstract" "1.17.2"
tslib "^2.4.0"

"@formatjs/intl-displaynames@6.6.0":
version "6.6.0"
resolved "https://registry.yarnpkg.com/@formatjs/intl-displaynames/-/intl-displaynames-6.6.0.tgz#6f590784b1bcdc1b96d4dba158bdce350f876804"
integrity sha512-bskUou9boZOzTqI8JdNCNkDavXf8uWWz/6NG1og/XJKpn4zsfiLdQ9EYKhVe/CfbCjlSyieJYn7/NztdoprHjw==
"@formatjs/intl-displaynames@6.5.2":
version "6.5.2"
resolved "https://registry.yarnpkg.com/@formatjs/intl-displaynames/-/intl-displaynames-6.5.2.tgz#b14ffd0962d5b5cfd71457efc389f0bca83a00db"
integrity sha512-uC2VBlz+WydGTDDpJwMTQuPH3CUpTricr91WH1QMfz5oEHg2sB7mUERcZONE/lu8MOe1jREIx4vBciZEVTqkmA==
dependencies:
"@formatjs/ecma402-abstract" "1.17.2"
"@formatjs/intl-localematcher" "0.4.2"
tslib "^2.4.0"

"@formatjs/intl-listformat@7.5.0":
version "7.5.0"
resolved "https://registry.yarnpkg.com/@formatjs/intl-listformat/-/intl-listformat-7.5.0.tgz#dbccf2e0f07792aa1c273702796bdad061dc27ae"
integrity sha512-n9FsXGl1T2ZbX6wSyrzCDJHrbJR0YJ9ZNsAqUvHXfbY3nsOmGnSTf5+bkuIp1Xiywu7m1X1Pfm/Ngp/yK1H84A==
"@formatjs/intl-listformat@7.4.2":
version "7.4.2"
resolved "https://registry.yarnpkg.com/@formatjs/intl-listformat/-/intl-listformat-7.4.2.tgz#c8d86d3b15eead41f74748d1c79d6450fd1bad82"
integrity sha512-+6bSVudEQkf12Hh7kuKt8Xv/MyFlqdwA4V4NLnTZW8uYdF9RxlOELDD0rPaOc2++TMKIzI5o6XXwHPvpL6VrPA==
dependencies:
"@formatjs/ecma402-abstract" "1.17.2"
"@formatjs/intl-localematcher" "0.4.2"
Expand All @@ -1306,17 +1306,17 @@
dependencies:
tslib "^2.4.0"

"@formatjs/[email protected].4":
version "2.9.4"
resolved "https://registry.yarnpkg.com/@formatjs/intl/-/intl-2.9.4.tgz#6f97a8e6e282086c39c8e502face5b2839f47b6f"
integrity sha512-hY0UlbDz8jY12RkQtkzxe3OfUmsIcUcsvVYyr1TFue6oTrUHqpkmYLdQ626V3BCSLc90EZDXdvmsPfMd3hTcYQ==
"@formatjs/[email protected].3":
version "2.9.3"
resolved "https://registry.yarnpkg.com/@formatjs/intl/-/intl-2.9.3.tgz#e570c4b1afb173dfb1f80a42624425dde9841329"
integrity sha512-hclPdyCF1zk2XmhgdXfl5Sd30QEdRBnIijH7Vc1AWz2K0/saVRrxuL3UYn+m3xEyfOa4yDbTWVbmXDL0XEzlsQ==
dependencies:
"@formatjs/ecma402-abstract" "1.17.2"
"@formatjs/fast-memoize" "2.2.0"
"@formatjs/icu-messageformat-parser" "2.7.0"
"@formatjs/intl-displaynames" "6.6.0"
"@formatjs/intl-listformat" "7.5.0"
intl-messageformat "10.5.4"
"@formatjs/icu-messageformat-parser" "2.6.2"
"@formatjs/intl-displaynames" "6.5.2"
"@formatjs/intl-listformat" "7.4.2"
intl-messageformat "10.5.3"
tslib "^2.4.0"

"@hapi/hoek@^9.0.0":
Expand Down Expand Up @@ -4743,14 +4743,14 @@ internmap@^1.0.0:
resolved "https://registry.yarnpkg.com/internmap/-/internmap-1.0.1.tgz#0017cc8a3b99605f0302f2b198d272e015e5df95"
integrity sha512-lDB5YccMydFBtasVtxnZ3MRBHuaoE8GKsppq+EchKL2U4nK/DmEpPHNH8MZe5HkMtpSiTSOZwfN0tzYjO/lJEw==

[email protected].4:
version "10.5.4"
resolved "https://registry.yarnpkg.com/intl-messageformat/-/intl-messageformat-10.5.4.tgz#7b212b083f1b354d7e282518e78057e025134af9"
integrity sha512-z+hrFdiJ/heRYlzegrdFYqU1m/KOMOVMqNilIArj+PbsuU8TNE7v4TWdQgSoxlxbT4AcZH3Op3/Fu15QTp+W1w==
[email protected].3:
version "10.5.3"
resolved "https://registry.yarnpkg.com/intl-messageformat/-/intl-messageformat-10.5.3.tgz#db0779d4a1988faa2977d76574489b7a25f0d5d0"
integrity sha512-TzKn1uhJBMyuKTO4zUX47SU+d66fu1W9tVzIiZrQ6hBqQQeYscBMIzKL/qEXnFbJrH9uU5VV3+T5fWib4SIcKA==
dependencies:
"@formatjs/ecma402-abstract" "1.17.2"
"@formatjs/fast-memoize" "2.2.0"
"@formatjs/icu-messageformat-parser" "2.7.0"
"@formatjs/icu-messageformat-parser" "2.6.2"
tslib "^2.4.0"

is-arguments@^1.0.4, is-arguments@^1.1.1:
Expand Down Expand Up @@ -6152,20 +6152,20 @@ [email protected]:
resolved "https://registry.yarnpkg.com/react-icons/-/react-icons-4.4.0.tgz#a13a8a20c254854e1ec9aecef28a95cdf24ef703"
integrity sha512-fSbvHeVYo/B5/L4VhB7sBA1i2tS8MkT0Hb9t2H1AVPkwGfVHLJCqyr2Py9dKMxsyM63Eng1GkdZfbWj+Fmv8Rg==

react-intl@^6.4.7:
version "6.5.0"
resolved "https://registry.yarnpkg.com/react-intl/-/react-intl-6.5.0.tgz#0ff04170f91e1bcbcd3301dfb2ae39a258827ec7"
integrity sha512-ZnBYFlFUU1ivhvWBA87XJLAr9nR8yeC1/83e6AL7yiHbWH7xQE7tyMyIyw6or78EvU9Hx8Sh8LUDC4bGrNxXOA==
[email protected]:
version "6.4.7"
resolved "https://registry.yarnpkg.com/react-intl/-/react-intl-6.4.7.tgz#28ec40350ff791a6a773f5e76b9e12835ae17e19"
integrity sha512-0hnOHAZhxTFqD1hGTxrF40qNyZJPPYiGhWIIxIz0Udz+3e3c7sdN80qlxArR+AbJ+jb5ALXZkJYH20+GPFCM0Q==
dependencies:
"@formatjs/ecma402-abstract" "1.17.2"
"@formatjs/icu-messageformat-parser" "2.7.0"
"@formatjs/intl" "2.9.4"
"@formatjs/intl-displaynames" "6.6.0"
"@formatjs/intl-listformat" "7.5.0"
"@formatjs/icu-messageformat-parser" "2.6.2"
"@formatjs/intl" "2.9.3"
"@formatjs/intl-displaynames" "6.5.2"
"@formatjs/intl-listformat" "7.4.2"
"@types/hoist-non-react-statics" "^3.3.1"
"@types/react" "16 || 17 || 18"
hoist-non-react-statics "^3.3.2"
intl-messageformat "10.5.4"
intl-messageformat "10.5.3"
tslib "^2.4.0"

react-is@^16.13.1, react-is@^16.7.0:
Expand Down

0 comments on commit 8e23595

Please sign in to comment.