setLocale repeat sluggable for all available locales in DB #220
Unanswered
mohamedsabil83
asked this question in
Q&A
Replies: 1 comment 3 replies
-
To be sure, is it only me who faced this issue? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm using sluggable and translatable packages. have two languages Arabic and English. let's say we have a Member model which has two columns (name and slug) and all settings set properly.
when using
setTranslation
method like:the slug column sets as expected
{"ar":"أحمد","en":"ahmed"}
but when using
setLocale
method like following, it clones the slug using the last locale:The Arabic last
the slug column will be
{"ar":"أحمد","en":"أحمد"}
The English last
the slug column will be
{"ar":"ahmed","en":"ahmed"}
The correct name column must saved as
{"ar":"أحمد","en":"Ahmed"}
Beta Was this translation helpful? Give feedback.
All reactions