I have defined the locale variable in init function and displaying the value in init & default function. Value is getting changed in default function as init function is getting executed multiple times.
Output:
INFO[0001] Init= fr_fr source=console
INFO[0001] CSV_Prod= fr_fr source=console
INFO[0001] CSV_SDP= fr_fr source=console
execution: local
script: .\csv_locale.js
output: -
scenarios: (100.00%) 1 scenario, 1 max VUs, 10m30s max duration (incl. graceful stop):
* default: 1 iterations for each of 1 VUs (maxDuration: 10m0s, gracefulStop: 30s)
INFO[0001] Init= fr_be source=console
INFO[0001] VU: 1 - ITER: 0 source=console
INFO[0001] RandomProduct from fr_be= 0641939001 source=console