You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I agree that dirname for this is a little bit confusing, because usually dirname refers to the full path. Would you by any change have a better name for what is currently a dirname pattern? Maybe something like parentDir?
Anyway - I feel like we just can't satisfy all possible use cases and maybe we should just allow labelFormat to be a function? That way you could return whatever you want (based on filename).
Anyway - I feel like we just can't satisfy all possible use cases and maybe we should just allow labelFormat to be a function? That way you could return whatever you want (based on filename).
The problem
For the moment I use
"labelFormat": "[dirname]-[filename]--[local]",
but that's not enough for me.Proposed solution
I would like that
dirname
takes all the folders.Context
I'm here:
/src/pages/Home/Main/Content.js
with:I would like that the className generated for
Heading
is:xxx-HomePageMainContent--Heading
(random-NameOfTheReactClass--NameOfTheLocal
)xxx-pages-Home-Main-Content--Heading
(random-The-Whole-Path--NameOfTheLocal
)Thank you :)
The text was updated successfully, but these errors were encountered: