我正在对一个应用程序进行国际化,但我不知道如何声明同时包含单引号和双引号的翻译字符串.这里有一个en的例子.yml字符串,我正在try
en:
my_string: When you're using double quotes, they look like "this"
使用上面的字符串,我得到以下错误:
can not load translations from /vagrant/config/locales/en.yml,
expected it to return a hash, but does not
如果只有双引号,我会用单引号括起来,反之亦然.但是我如何处理双引号和单引号呢?