-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SLT-145] feat(synapse-interface): Adds internationalization (#3096)
* Adds next-intl * /messages folder to hold translations * getStaticProps across pages to fetch locales * Adds LanguageSelector * TranslatedText component for toast helper utils * Persists language in local storage --------- Co-authored-by: Moses <[email protected]>
- Loading branch information
1 parent
c5ad9f9
commit 0cce247
Showing
115 changed files
with
4,220 additions
and
2,187 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
const { ignorePatterns } = require('./.eslintrc') | ||
|
||
module.exports = { | ||
root: true, | ||
parser: '@typescript-eslint/parser', | ||
parserOptions: { | ||
ecmaVersion: 2021, | ||
sourceType: 'module', | ||
ecmaFeatures: { | ||
jsx: true, | ||
}, | ||
}, | ||
plugins: ['i18next'], | ||
ignorePatterns: [ | ||
'pages/lifi/index.tsx', | ||
'components/Maintenance/example/EcotoneForkUpgrade.tsx', | ||
'pages/_app.tsx', | ||
], | ||
rules: { | ||
// Enable the i18next rule | ||
'i18next/no-literal-string': 'error', | ||
|
||
// Disable unrelated rules | ||
'@typescript-eslint/no-explicit-any': 'off', | ||
'@typescript-eslint/explicit-module-boundary-types': 'off', | ||
'@typescript-eslint/no-non-null-assertion': 'off', | ||
'prefer-arrow/prefer-arrow-functions': 'off', | ||
'import/order': 'off', | ||
'prefer-const': 'off', | ||
'jsdoc/newline-after-description': 'off', | ||
'no-duplicate-imports': 'off', | ||
eqeqeq: 'off', | ||
'no-return-await': 'off', | ||
'object-shorthand': 'off', | ||
'prettier/prettier': 'off', | ||
'no-redeclare': 'off', | ||
radix: 'off', | ||
'jsdoc/check-alignment': 'off', | ||
'no-undef-init': 'off', | ||
}, | ||
// Ignore all other plugins and extends | ||
extends: [], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.