filamentphp / filament

A collection of beautiful full-stack components for Laravel. The perfect starting point for your next app. Using Livewire, Alpine.js and Tailwind CSS.
https://filamentphp.com
MIT License
17.71k stars 2.77k forks source link

Wrong Norwegian language code (no) #14214

Open Tor2r opened 6 days ago

Tor2r commented 6 days ago

Package

filament/filament

Package Version

v3.2.111

Laravel Version

v11.22.0

Livewire Version

v3.5.6

PHP Version

PHP 8.3

Problem description

Norway have two written languages, Norsk Bokmål (nb) and Nynorsk (nn). Laravel lang have both of these which translates your Laravel application.

Since Filament uses "no" you wount benefint from these translation, like the validation messages.

When you set your language to "no" Filament is translated as expected, but the rest of your Laravel application is not, and vice versa.

Expected behavior

Setting language to "nb" would translate both Laravel application and Filament.

Steps to reproduce

Install Laravel, Livewire, Filament and Laravel lang. Sett locale to "no" or "nb" Add a user. Log in. Go to "Edit user" Fill in a short password. Validation message would be in another language than the Filament app.

Reproduction repository (issue will be closed if this is not valid)

https://github.com/Tor2r/novsnb

Relevant log output

No response

Donate 💰 to fund this issue

Fund with Polar

Tor2r commented 6 days ago

I will gladly pull request a "nb" language to Filament, but I just don't know if that is the correct way to go, since there already is a "no" version.

ekandreas commented 5 days ago

Hopefully this will be fixed soon.