You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Our normalize tool is supposed to remove double quotes from YAML values, but it's not behaving consistently. In some cases, double quotes get swapped for single quotes. For instance:
activerecord:
errors:
messages:
record_invalid: "Validation failed: %{errors}"restrict_dependent_destroy:
has_one: "Cannot delete record because a dependent %{record} exists"has_many: "Cannot delete record because dependent %{record} exist"
gets normalized to:
activerecord:
errors:
messages:
record_invalid: 'Validation failed: %{errors}'restrict_dependent_destroy:
has_one: Cannot delete record because a dependent %{record} existshas_many: Cannot delete record because dependent %{record} exist
record_invalid ends up with single quotes instead of double quotes, and has_many loses the quotes entirely.
I personally think we should not remove the double quotes to keep our translations similar to the locale files from the Rails project.
The text was updated successfully, but these errors were encountered:
Our normalize tool is supposed to remove double quotes from YAML values, but it's not behaving consistently. In some cases, double quotes get swapped for single quotes. For instance:
gets normalized to:
record_invalid
ends up with single quotes instead of double quotes, andhas_many
loses the quotes entirely.I personally think we should not remove the double quotes to keep our translations similar to the locale files from the Rails project.
The text was updated successfully, but these errors were encountered: