diff options
Diffstat (limited to 'examples/docs/src/components/Header/LanguageSelect.tsx')
-rw-r--r-- | examples/docs/src/components/Header/LanguageSelect.tsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/docs/src/components/Header/LanguageSelect.tsx b/examples/docs/src/components/Header/LanguageSelect.tsx index cf325eedc..8b9807fe8 100644 --- a/examples/docs/src/components/Header/LanguageSelect.tsx +++ b/examples/docs/src/components/Header/LanguageSelect.tsx @@ -1,7 +1,7 @@ import type { FunctionalComponent } from 'preact'; import { h } from 'preact'; import './LanguageSelect.css'; -import { LANGUAGE_NAMES, langPathRegex } from '../../languages'; +import { KNOWN_LANGUAGES, langPathRegex } from '../../languages'; const LanguageSelect: FunctionalComponent<{ lang: string }> = ({ lang }) => { return ( @@ -23,9 +23,9 @@ const LanguageSelect: FunctionalComponent<{ lang: string }> = ({ lang }) => { window.location.pathname = '/' + newLang + actualDest; }} > - {Object.keys(LANGUAGE_NAMES).map((key) => { + {Object.keys(KNOWN_LANGUAGES).map((key) => { return ( - <option value={LANGUAGE_NAMES[key]}> + <option value={KNOWN_LANGUAGES[key]}> <span>{key}</span> </option> ); |