diff options
author | 2021-08-26 15:02:38 -0700 | |
---|---|---|
committer | 2021-08-26 15:03:21 -0700 | |
commit | 2e8db7ad2384b756894eac6be72bcf720f7f28fa (patch) | |
tree | 074ff88116520c3484210a0b94331b0f2b81581b /examples/docs/src/components/Header/LanguageSelect.tsx | |
parent | b7ada11ddbabe4dd2f0798e140e5b280de4d6952 (diff) | |
download | astro-2e8db7ad2384b756894eac6be72bcf720f7f28fa.tar.gz astro-2e8db7ad2384b756894eac6be72bcf720f7f28fa.tar.zst astro-2e8db7ad2384b756894eac6be72bcf720f7f28fa.zip |
add algolia and cleanup docs readme
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> ); |