fix(ci): update docker image for Node orb (#61)

* fix(ci): update docker image for Node orb

CircleCi was complaining about:

```
error npm-check-updates@9.0.1: The engine "node" is incompatible with this module. Expected version ">=10.17". Got "10.16.3"
error Found incompatible module.
```

* fix(ci): docker image

* fix(ci): i18n.language is not defined on ci
pull/73/head
guhur 4 years ago committed by GitHub
parent b149bfb856
commit fe16e28180

@ -2,7 +2,7 @@ version: 2.1
jobs: jobs:
build: build:
docker: docker:
- image: circleci/node:10.16.3 - image: cimg/node:lts
steps: steps:
- checkout - checkout
- run: - run:

@ -8,7 +8,7 @@ import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
const Paypal = props => { const Paypal = props => {
const { t } = props; const { t } = props;
let localeStringShort = i18n.language.substring(0, 2); let localeStringShort = i18n.language? i18n.language.substring(0, 2): "en";
let localeStringComplete = let localeStringComplete =
localeStringShort.toLowerCase() + "_" + localeStringShort.toUpperCase(); localeStringShort.toLowerCase() + "_" + localeStringShort.toUpperCase();
if (localeStringComplete === "en_EN") { if (localeStringComplete === "en_EN") {

@ -12,7 +12,7 @@ const LanguageSelector = () => {
i18n.changeLanguage(locale); i18n.changeLanguage(locale);
}; };
let locale = i18n.language.substring(0, 2).toUpperCase(); let locale = i18n.language? i18n.language.substring(0, 2).toUpperCase() : "EN";
if (locale === "EN") locale = "GB"; if (locale === "EN") locale = "GB";
return ( return (
<ReactFlagsSelect <ReactFlagsSelect

@ -12,7 +12,7 @@ i18n
debug: true, debug: true,
saveMissing: true, // send not translated keys to endpoint saveMissing: true, // send not translated keys to endpoint
defaultValue: "__STRING_NOT_TRANSLATED__", defaultValue: "__STRING_NOT_TRANSLATED__",
react: { useSuspense: false },
keySeparator: ">", keySeparator: ">",
nsSeparator: "|", nsSeparator: "|",
backend: { backend: {

Loading…
Cancel
Save