nova-tabs
nova-tabs copied to clipboard
Tabs won't show if tab name is in Chinese
e.g.,
return [
Tabs::make('Some Title', [
Tab::make('基本信息', [
Text::make('Title'),
]),
Tab::make('其他信息', [
Textarea::make('Content'),
]),
])
];
there is the result
note that tabs are missing. If I change the Chinese into English, it works fine.
This is a known issue. Slugs are generated by putting the name through Str::slug()
, which strips out Chinese characters (among others, including Japanese, Korean and more).
I proposed a change to allow this to happen, but haven't had the time to implement it. See #249 for that.
Until then you're best off calling calling the name
method on each tab and supplying a name using ASCII characters.