summaryrefslogtreecommitdiff
path: root/docs/src/pages/index.astro
diff options
context:
space:
mode:
authorGravatar V. Tinev <54780475+vtinev@users.noreply.github.com> 2021-08-06 08:51:07 +0300
committerGravatar GitHub <noreply@github.com> 2021-08-05 22:51:07 -0700
commit8330071509b26b31b4553a78865c5f5fae127411 (patch)
tree721f99cc59524a57744ea68de4b797af0638a6b9 /docs/src/pages/index.astro
parentdbf18b11306171e07752efa468e2810204d0f688 (diff)
downloadastro-8330071509b26b31b4553a78865c5f5fae127411.tar.gz
astro-8330071509b26b31b4553a78865c5f5fae127411.tar.zst
astro-8330071509b26b31b4553a78865c5f5fae127411.zip
Added Bulgarian translation for the Getting Started page. (#1032)
* Added translation for the Getting Started page. * Removed remaining English text from the translated version. * Added Bulgarian as a known langugage (index.astro). * Added Bulgarian as a known langugage (index.astro). Co-authored-by: V. Tinev <vtiev@2create.studio>
Diffstat (limited to 'docs/src/pages/index.astro')
-rw-r--r--docs/src/pages/index.astro4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/src/pages/index.astro b/docs/src/pages/index.astro
index 2b090ca81..eaa67e524 100644
--- a/docs/src/pages/index.astro
+++ b/docs/src/pages/index.astro
@@ -6,7 +6,7 @@ import Layout from '../layouts/MainLayout.astro';
// This is some wip redirect code based on the browser language.
// A vercel.json redirect is enforced in production, so no user should ever see this page.
// Remove the vercel.json redirect when this is ready.
- const KNOWN_LANGUAGES = ['de','en','es','fi','nl','pt-br','zh-CN','zh-TW'];
+ const KNOWN_LANGUAGES = ['bg', 'de','en','es','fi','nl','pt-br','zh-CN','zh-TW'];
let newLangWithRegion = (window.navigator.userLanguage || window.navigator.language || 'en-US').substr(0, 5);
let newLang = newLangWithRegion.substr(0, 2);
if (newLang === 'en') {
@@ -18,4 +18,4 @@ import Layout from '../layouts/MainLayout.astro';
} else {
window.location.pathname = '/getting-started';
}
-</script> \ No newline at end of file
+</script>