How to translate buttons?
Hello, i would like to know of its possible to translate those buttons.
I use this for changing languages.
https://filamentphp.com/plugins/bezhansalleh-language-switch
Filament
Language Switch by Bezhan Salleh - Filament
A versatile and user-friendly Locale/Language Switch designed for Filament Panels.

29 Replies
And also those texts i want them transated:

I'm not sure how do i do that.
Those are all generated from
modelLabel and pluralModelLabel
https://filamentphp.com/docs/4.x/resources/overview#customizing-the-model-labelYep, found it already.
But what about those:

Those are from Filament itself. What language are you using? Is that Japanese or Korean?
Japanese
Did you set the locale or your app to Japanese inside
.env?
We should have Japanese translations. Maybe not 100% covered, but we definitely have some

The main language will be english, but i want some transaltions.
Ah, gotcha.
Especially in japanese.
You are using the translation method
__() for the navigation group, right?When i choose the Romanian language its translating the buttons:


Is a change to be no translations for japanese?
Hm. So the plugin seems to work. Are there any translations in Japanese?
None of them.
I choose japanese everything is in english.
Can you share the Plugin config?
Where do i find it? :))
This part. Probably in your AppServiceProvider
https://filamentphp.com/plugins/bezhansalleh-language-switch#usage
Filament
Language Switch by Bezhan Salleh - Filament
A versatile and user-friendly Locale/Language Switch designed for Filament Panels.

This one?
Solution
Yes. Japanese locale code is
ja not jpnohhh
Perfect. But i have one more question.
I used jpn, is it normally show the language here even i misspeled?

The plugin probably doesn't check for existing Filament translations. Also: You could use any locale you want, if you add them yourself. But Filament uses
ja.Yep, its working great now, thank you so much.
You're welcome