I18n not working in Dialogflow


#1

Hello! how are they?

I have the following problem. I’m using i18n for multi-language and the this.l(‘key’) function doesn’t work for me in Dialogflow but it does work on the debugger.

Any idea why it might be?

Best regards


#2

What did you call your translation file, e.g. en-US.json? Dialogflow uses just en, so your problem might be solved by renaming your i18n file to en.json.


#3

Hello!
Yes, indeed it is!

Thank you for the answer.