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
    Commented Apr 28, 2022 at 10:59
  • Thanks Sameer for suggestion Commented Apr 29, 2022 at 6:05
  • You're welcome @ShivOmMishra :) Commented 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
  • thanks @Sameer Bhayani Commented Apr 26, 2023 at 12:13
  • Welcome @ShivOmMishra Commented Apr 27, 2023 at 2:15

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.