Timeline for When using "createElementSelectorModal()" how do you respect selected locale?
Current License: CC BY-SA 3.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 29, 2016 at 18:19 | comment | added | a-am | It appears the only way to get the current selected locale from an entry edit screen is via the local hidden input, which is not the same as BaseElementIndex.locale. | |
Mar 29, 2016 at 18:14 | vote | accept | a-am | ||
Mar 21, 2016 at 17:06 | comment | added | Mats Mikkel Rummelhoff |
@aran Sorry, didn't understand that you were looking for the current element index locale. The easiest (only) way I know how to do that, is to look in localStorage – just updated my answer.
|
|
Mar 21, 2016 at 17:05 | history | edited | Mats Mikkel Rummelhoff | CC BY-SA 3.0 |
added 52 characters in body
|
Mar 21, 2016 at 16:51 | vote | accept | a-am | ||
Mar 29, 2016 at 18:13 | |||||
Mar 21, 2016 at 16:49 | comment | added | a-am | That only grabs the CP's locale not the currently select locale in the edit entry view. | |
Mar 21, 2016 at 16:49 | comment | added | Mats Mikkel Rummelhoff | Yeah - its in the answer above; Craft.locale | |
Mar 21, 2016 at 16:46 | comment | added | a-am | Can you get the CP's currently selected locale form the js Craft class? | |
Mar 20, 2016 at 9:20 | history | answered | Mats Mikkel Rummelhoff | CC BY-SA 3.0 |