Hello to all,
I have a Cypress/Rails localization question. I am attempting to localize a small application. In Rails, that means pulling strings from the en.yml file versus writing the string out. In rails I using the t() method i.e. t(“page.pasa_pase.new.title”) which lives in the en.yml file as ” New Case”This Rails application has Cypress tests; I need to write the correct code to allow Cypress to place “New Case” into the test
- Can Cypress pull the string from an en.yml file and the syntax used in .yml? Or do i need to create a new JSON file for these strings?
- If I am able to pull this string from the en.yml file is the syntax for Cypress/JS $.i18n(“page.pasa_pase.new.title”) VS rails t(“page.pasa_pase.new.title”)? #ruby