use rustelo_core_lib::config::{get_default_language, get_supported_languages};

fn main() {
    println!("=== Language Configuration Test ===");

    println!("Default language: {}", get_default_language());
    println!("Supported languages: {:?}", get_supported_languages());

    // Test dynamic discovery
    let discovered = shared::i18n::discover_available_languages();
    let default_discovered = shared::i18n::get_default_language();
    let count = shared::i18n::supported_language_count();

    println!("\n🔍 Dynamic language discovery:");
    println!("├─ Discovered languages: {:?}", discovered);
    println!("├─ Default from discovery: {}", default_discovered);
    println!("├─ Language count: {}", count);

    println!("\n✅ Configuration system is working!");
    println!("✅ Languages are now discovered automatically from content/locales directory");
    println!("💡 You can still override with DEFAULT_LANGUAGE and SUPPORTED_LANGUAGES env vars");
}
