craftcms / feed-me

Craft CMS plugin for importing entry data from XML, RSS or ATOM feeds—routine task or on-demand.
Other
286 stars 139 forks source link

support for user's preferred locale option #1289

Closed i-just closed 1 year ago

i-just commented 1 year ago

Description

Added support for saving user’s preferred locale.

Related issues

612

i-just commented 1 year ago

services/Process->processFeed() calls base\Element->parseAttribute() which calls a method called 'parse' . ucwords($fieldHandle). That’s how most attributes are dealt with.

https://github.com/craftcms/feed-me/blob/main/src/services/Process.php#L364 https://github.com/craftcms/feed-me/blob/main/src/base/Element.php#L100-L107

Screenshot 2023-04-28 at 08 02 47
angrybrad commented 1 year ago

@i-just thank you!

gschratzer commented 4 months ago

just i was confused about the fieldname PreferredLocale, that is the functionname but in my csv it is working fine in my moodle [4.1.6 (Build: 20231009)] perfect if i have a field lang with the isocode en, fr, ro, ru, etc