Disabling translations of slugs #317
Unanswered
NicTorgersen
asked this question in
Q&A
Replies: 1 comment
-
I had a similar requirement, I wanted to use tags only in German. Even when current locale is not "de", only "de" tags should be used (fetched or created). First I did this: I removed this function:
and used it this way:
Then I overwrote this function im my class:
There I set $locale to "de". |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I don't care for translating my slugs as they are largely programmatic components. Slugs are used in our search-repository to provide a faceted search experience.
I tried extending
Spatie\Tags\Tag
and overriding the$translatable
array, but to no real avail as it looks like theHasSlugs
-trait expects slugs to be translatable.Has anyone been in the same boat who can provide some thoughts or tips?
Beta Was this translation helpful? Give feedback.
All reactions