Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Locale didn't work on emitter #204

Open
g1u53pp3 opened this issue Nov 14, 2024 · 4 comments
Open

Locale didn't work on emitter #204

g1u53pp3 opened this issue Nov 14, 2024 · 4 comments

Comments

@g1u53pp3
Copy link

I have an emitter with locale setted but the output is generic
emitter:

{
"emitters": {
"user":[{"name":"user",
      "locale":"IT",
      "num": 0,
      "frequency": "0s",
      "duration": "0s",
      "preload": 1,
      "valueTemplate": "user",
      "output": "stdout",
      "keyTemplate": "null",
      "outputTemplate": "{{.V}}\n",
      "topic": "user"}]
  },

"global": {..

Output:

{
  "guid": "72612965-5600-426f-8c2b-98e0cab9b9f8",
  "nsg":"2842031084149",
  "abi":"03359"
  "isActive": false,
  "balance": "€4439.09",
  "picture": "http://placehold.it/32x32",
  "age": 26,
  "eyeColor": "green",
  "name": "Martha Jimenez",
  "gender": "F",
  "company": "Gray Matter Technologies",
  "work_email": "[email protected]",
  "email": "[email protected]",
  "about": "Lorem ipsum dolor sit amet, consectetur adipiscing elit.Fusce elit magna, lobortis nec semper non, aliquam at nisl. Vestibulum elementum suscipit",
  "country": "US",
  "address": "Denver, Beach Road 59, 96813",
  "phone_number": "720 79789353",
  "mobile": "3845929",
  "latitude": -87.5658,
  "longitude": -66.4086
}

@ugol
Copy link
Collaborator

ugol commented Nov 14, 2024

hey Giuseppe, have you tried to have just the emitters you are using configured in jrconfig.json, removing the others with a different locale?

@g1u53pp3
Copy link
Author

Hi ugol,
Yes, i have tried to set all the emitters on the same locale and to have only one emitter either but nothing works

@ugol
Copy link
Collaborator

ugol commented Nov 14, 2024

that's bizarre, the basic template run

jr run --locale it user

works on your machine?

also, are you sure you are using the jrconfig.json you are editing?

@g1u53pp3
Copy link
Author

the problem is the preload settings

all the object created in the preload fase didn't get the locate option

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants