tinloof / sanity-kit

83 stars 11 forks source link

feat: properly render custom folder titles with i18n enabled + add ability to localize folder titles #73

Closed marcusforsberg closed 4 months ago

marcusforsberg commented 5 months ago

66 contained a mistake causing custom folder titles to not be applied in the navigator when i18n is enabled. This fixes that by looking at the original pathname instead of the localized one (same as it already did for the icons).

Also includes the ability to use a callback function to generate the folder title based on the selected locale.