<?php

namespace App\Support;

final class AppLocale
{
    /** Locale string passed to Carbon::locale() for formatting (pt-PT app uses pt_BR data). */
    public static function carbon(): string
    {
        return match (app()->getLocale()) {
            'pt' => 'pt_BR',
            'es' => 'es_ES',
            default => 'en_US',
        };
    }
}
