1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-05 05:45:22 +02:00

chore(account): write tests for CreateAccessToken [EE-2561] (#6578)

This commit is contained in:
Chaim Lev-Ari 2022-03-13 09:14:41 +02:00 committed by GitHub
parent b7d18ef50f
commit f1ea2b5c02
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 178 additions and 27 deletions

21
app/setup-tests/i18n.ts Normal file
View file

@ -0,0 +1,21 @@
import i18n from 'i18next';
import { initReactI18next } from 'react-i18next';
import translation from '../../translations/en/translation.json';
i18n.use(initReactI18next).init({
lng: 'en',
fallbackLng: 'en',
// have a common namespace used around the full app
ns: ['translationsNS'],
defaultNS: 'translationsNS',
interpolation: {
escapeValue: false,
},
resources: { en: { translationsNS: translation } },
});
export default i18n;