i18n-docs
i18n-docs copied to clipboard
Ability to use YAML aliases
I use some concerns, e.g. Addressable, in my code and would like to avoid having these (repeated) fields appear many times in my translations speadsheet. I want to use YAML aliases to achieve this and so I'd like to have those aliases in the Google Doc and have them imported correctly.
I would like my final YAML to look as follows:
en:
aaa:
tables: &table Table
activerecord:
concerns:
addressable: &addressable
address: Address
logoable: &logoable
logo: Logo
models:
some_model:
table: *table
Note table alias has a value on the same line, whereas addressable includes everything below it.
To achieve that, my google doc to looks as follows:
key | en | de |
---|---|---|
aaa.tables | &table Table | &table Tabelle |
activerecord.concerns.addressable | &addressable | &addressable |
activerecord.concerns.addressable.address | Address | Addresse |
activerecord.concerns.logoable | &logoable | &logoable |
activerecord.concerns.logoable.logo | Logo | Logo |
activerecord.models.some_model.table | *table | *table |