Translate a JS string from Drupal interface translations
Translate a JS string from Drupal interface translations
Drupal.t()
Drupal.t("My String");
Clear the Drupal Cache.
This string appear in /admin/config/regional/
if not then check your libraries.yml file
And add the corresponding dependencies THEME.libraries.yml:
dependencies:
- core/jquery
- core/drupal
Enjoy :)