'use server'

import { detectUserLanguage } from '@/lib/i18n/detect-user-language'
import { SupportedLanguage } from '@/lib/i18n/load-translations'

/**
 * Server action to detect user's preferred language
 * Called on app load to set initial language
 */
export async function getInitialLanguage(): Promise<SupportedLanguage> {
  return await detectUserLanguage()
}
