-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* I18n Support PoC * Create ossmc i18n files and combine with kiali ones * Don't add locales in Dockerfile, added in webpack bundle * Copy of Kiali frontend source code Kiali frontend source originated from: * git ref: master * git commit: 01f6db8f071dfe0e893d9e072f4150e3a7bdf168 * GitHub URL: https://github.com/kiali/kiali/tree/01f6db8f071dfe0e893d9e072f4150e3a7bdf168/frontend/src Signed-off-by: Fernando Hoyos <fhoyosle@redhat.com> * Adapt OSSMC to PF5 * Reverse i18n changes (separated PR) * Remove i18n support libraries * Remove i18n from IstioConfigListPage * Update console dynamic plugin libraries * Fix traffic graph context menu * Update kiali source code * Add kiosk action condition to history.push * Fix API JSON body issues * Copy of Kiali frontend source code Kiali frontend source originated from: * git ref: master * git commit: 4c8625dc2003d52a4320c2449136c382ce0d987b * GitHub URL: https://github.com/kiali/kiali/tree/4c8625dc2003d52a4320c2449136c382ce0d987b/frontend/src Signed-off-by: Fernando Hoyos <fhoyosle@redhat.com> * Add new graph routes with params * Downgrade patternfly to version 5.1.1 to avoid Modal issue * Fix lint issues * Copy of Kiali frontend source code Kiali frontend source originated from: * git ref: master * git commit: d757d2adc9526804db9bb40fcf65ae390b055ba0 * GitHub URL: https://github.com/kiali/kiali/tree/d757d2adc9526804db9bb40fcf65ae390b055ba0/frontend/src Signed-off-by: Fernando Hoyos <fhoyosle@redhat.com> * Small adjustment to overview page style * Fix rebase conflicts * Navigates to the proper OpenShift Console * Fix get istio config list for all namespaces * Fix ul css style within tooltip * Add i18n support * Copy of Kiali frontend source code Kiali frontend source originated from: * git ref: master * git commit: bcdf8823294e6732b63cf57287edff9c25286807 * GitHub URL: https://github.com/kiali/kiali/tree/bcdf8823294e6732b63cf57287edff9c25286807/frontend/src Signed-off-by: Fernando Hoyos <fhoyosle@redhat.com> * Add chinese translation * Update React routing to 'react-router-dom-v5-compat' library * Wait for security info before setting Kiali as loaded * Override some console styles that affect OSSMC * Copy of Kiali frontend source code Kiali frontend source originated from: * git ref: master * git commit: e8752fcd2af859f38ef69335535bbd56806facab * GitHub URL: https://github.com/kiali/kiali/tree/e8752fcd2af859f38ef69335535bbd56806facab/frontend/src Signed-off-by: Fernando Hoyos <fhoyosle@redhat.com> --------- Signed-off-by: Fernando Hoyos <fhoyosle@redhat.com>
- Loading branch information
Showing
519 changed files
with
30,285 additions
and
19,259 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
// I18next parser configuration | ||
|
||
const i18nextParserConfig = { | ||
createOldCatalogs: false, | ||
// Save the \_old files | ||
|
||
defaultNamespace: 'translation', | ||
// Default namespace used in your i18next config | ||
|
||
defaultValue: (_locale: string, _namespace: string, key: string, value: string): string => { | ||
return value || key; | ||
}, | ||
// Default value to give to keys with no value | ||
// You may also specify a function accepting the locale, namespace, key, and value as arguments | ||
|
||
keySeparator: false, | ||
// Key separator used in your translation keys | ||
// If you want to use plain english keys, separators such as `.` and `:` will conflict. You might want to set `keySeparator: false` and `namespaceSeparator: false`. That way, `t('Status: Loading...')` will not think that there are a namespace and three separator dots for instance. | ||
|
||
// see below for more details | ||
lexers: { | ||
hbs: ['HandlebarsLexer'], | ||
handlebars: ['HandlebarsLexer'], | ||
|
||
htm: ['HTMLLexer'], | ||
html: ['HTMLLexer'], | ||
|
||
mjs: ['JavascriptLexer'], | ||
js: ['JavascriptLexer'], // if you're writing jsx inside .js files, change this to JsxLexer | ||
ts: ['JavascriptLexer'], | ||
jsx: ['JsxLexer'], | ||
tsx: ['JsxLexer'], | ||
|
||
default: ['JavascriptLexer'] | ||
}, | ||
|
||
locales: ['en', 'zh'], | ||
// An array of the locales in your applications | ||
|
||
namespaceSeparator: '~', | ||
// Namespace separator used in your translation keys | ||
// If you want to use plain english keys, separators such as `.` and `:` will conflict. You might want to set `keySeparator: false` and `namespaceSeparator: false`. That way, `t('Status: Loading...')` will not think that there are a namespace and three separator dots for instance. | ||
|
||
sort: true | ||
// Whether or not to sort the catalog. Can also be a [compareFunction](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#parameters) | ||
}; | ||
|
||
/* eslint-disable import/no-default-export*/ | ||
export default i18nextParserConfig; |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.