Get and set XDG user dirs variables in config file

Config file in $XDG_CONFIG_HOME/user-dirs.dirs.

How should it be done to get the folder names from the user locale?