defaultLocale: 'root',
locales: {
root: {
label: 'English',
lang: 'en', // lang is required for root locales
},
'id': { label: 'Bahasa Indonesia', lang: 'id' },
'ms': { label: 'Bahasa Malaysia', lang: 'ms' },
'bg': { label: 'Български', lang: 'bg' },
'ca': { label: 'Català', lang: 'ca' },
'cs': { label: 'Čeština', lang: 'cs' },
'da': { label: 'Dansk', lang: 'da' },
'de': { label: 'Deutsch', lang: 'de' },
'et': { label: 'Eesti', lang: 'et' },
'es': { label: 'Español', lang: 'es' },
'es-AR': { label: 'Español (AR)', lang: 'es-AR' },
'es-MX': { label: 'Español (MX)', lang: 'es-MX' },
'tl': { label: 'Filipino', lang: 'tl' },
'fi': { label: 'Suomi', lang: 'fi' },
'fr': { label: 'Français', lang: 'fr' },
'el': { label: 'Ελληνικά', lang: 'el' },
'he': { label: 'עברית', lang: 'he' },
'hi': { label: 'हिन्दी', lang: 'hi' },
'hr': { label: 'Hrvatski', lang: 'hr' },
'hu': { label: 'Magyar', lang: 'hu' },
'is': { label: 'Íslenska', lang: 'is' },
'it': { label: 'Italiano', lang: 'it' },
'ja': { label: '日本語', lang: 'ja' },
'ko': { label: '한국어', lang: 'ko' },
'lv': { label: 'Latviski', lang: 'lv' },
'lt': { label: 'Lietuvių', lang: 'lt' },
'nl': { label: 'Nederlands', lang: 'nl' },
'no': { label: 'Norsk', lang: 'no' },
'pl': { label: 'Polski', lang: 'pl' },
'pt-BR': { label: 'Português (BR)', lang: 'pt-BR' },
'pt-PT': { label: 'Português (PT)', lang: 'pt-PT' },
'ro': { label: 'Română', lang: 'ro' },
'ru': { label: 'Русский', lang: 'ru' },
'sk': { label: 'Slovenčina', lang: 'sk' },
'sl': { label: 'Slovenščina', lang: 'sl' },
'sr': { label: 'Srpski', lang: 'sr' },
'sv': { label: 'Svenska', lang: 'sv' },
'th': { label: 'ภาษาไทย', lang: 'th' },
'tr': { label: 'Türkçe', lang: 'tr' },
'uk': { label: 'Українська', lang: 'uk' },
'vi': { label: 'Tiếng Việt', lang: 'vi' },
'ar': { label: 'العربية', lang: 'ar' },
'zh-CN': { label: '简体中文', lang: 'zh-CN' },
'zh-TW': { label: '繁體中文', lang: 'zh-TW' },
},
When I build this, every locale directory that outputs to dist/ gets nested locale directories of all the locales that have region on them.
Could have something to do with the fact that the region on the locale folder is not upper case in dist.
What version of
starlightare you using?^0.34.3
What version of
astroare you using?^5.8.1
What package manager are you using?
npm
What operating system are you using?
Mac
What browser are you using?
Chrome
Describe the Bug
Here are my locales:
Here's my directory structure under src/content/docs:

When I build this, every locale directory that outputs to dist/ gets nested locale directories of all the locales that have region on them.
Could have something to do with the fact that the region on the locale folder is not upper case in dist.
Link to Minimal Reproducible Example
https://github.com/wink-travel/docs
Participation