72 lines
No EOL
1.9 KiB
Text
72 lines
No EOL
1.9 KiB
Text
# AuroraFrame Site Configuration with i18n
|
|
|
|
import "i18n-config.k"
|
|
|
|
site: SiteConfig = {
|
|
name = "AuroraFrame Demo"
|
|
title = "AuroraFrame - Build at the Speed of Thought"
|
|
description = "AI-enhanced static site generator"
|
|
base_url = "https://demo.auroraframe.dev"
|
|
|
|
# Internationalization configuration
|
|
i18n = {
|
|
default_locale = "en-US"
|
|
available_locales = [
|
|
{
|
|
code = "en-US"
|
|
name = "English (US)"
|
|
direction = "ltr"
|
|
enabled = True
|
|
}
|
|
{
|
|
code = "es-ES"
|
|
name = "Español"
|
|
direction = "ltr"
|
|
fallback = "en-US"
|
|
enabled = True
|
|
}
|
|
{
|
|
code = "fr-FR"
|
|
name = "Français"
|
|
direction = "ltr"
|
|
fallback = "en-US"
|
|
enabled = True
|
|
}
|
|
{
|
|
code = "ar-SA"
|
|
name = "العربية"
|
|
direction = "rtl"
|
|
fallback = "en-US"
|
|
enabled = False # Not ready yet
|
|
}
|
|
]
|
|
fallback_chain = ["en-US"]
|
|
|
|
# Directory configuration
|
|
global_locales_dir = "locales/global"
|
|
page_locales_dir = "locales/pages"
|
|
|
|
# Build settings
|
|
generate_locale_routes = True
|
|
locale_in_url = True
|
|
locale_detection = ["url", "cookie", "header", "default"]
|
|
|
|
# Performance optimization
|
|
bundle_splitting = "hybrid"
|
|
preload_locales = ["en-US"]
|
|
lazy_load_pages = True
|
|
}
|
|
|
|
# Build configuration
|
|
build = {
|
|
output_dir = "dist"
|
|
optimize = True
|
|
i18n = {
|
|
validate_messages = True
|
|
generate_typing = True
|
|
ai_translation = True
|
|
ai_validation = True
|
|
missing_key_strategy = "warn"
|
|
}
|
|
}
|
|
} |