0
define(
    [
        "jquery",
        "Magento_Ui/js/modal/modal",
        "mage/calendar",
        "mage/translate",
    ], function($, modal){

// also use this on my code

$.mage.__('confirm'),
3
  • try remove the "js-translation.json" file located at pub/static/frontend/...your theme directory. and cache flush.
    – Antony
    Apr 28, 2022 at 10:59
  • Thanks Sameer for suggestion Apr 29, 2022 at 6:05
  • You're welcome @ShivOmMishra :) Apr 29, 2022 at 7:09

1 Answer 1

0

Can you try below command:

php bin/magento i18n:collect-phrase

Source: Translation dictionaries and language packages

I hope, It will help you.

Thanks

2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.