localeapp icon indicating copy to clipboard operation
localeapp copied to clipboard

Pull add unwanted line to en.yml

Open HatemKhattab opened this issue 5 years ago • 3 comments

when i pull my translations to _i18n file, its become like this

en: key_1: xxx key_2: xxx

How can i fix it to make pull only retrive the keys like key_1: xxx key_2: xxx

HatemKhattab avatar Nov 04 '19 10:11 HatemKhattab

Hello @HatemKhattab,

Currently, there is no way to do that. Why do you want to remove the root key? It won't be anymore a valid i18n rails YAML file if you remove it.

thibaultdalban avatar Nov 04 '19 14:11 thibaultdalban

Hi @thibaultdalban I use Jekyll, and i need to remove the main key after every pull . it must be without root key to work with jekyll-multiple-languages-plugin

HatemKhattab avatar Nov 05 '19 09:11 HatemKhattab

I would suggest you to open a ticket against jekyll-multiple-languages-plugin, @HatemKhattab . They seem to load and parse YAML files by hand, and their expected Ruby de-facto standard file format defined by i18n gem.

pirj avatar Jun 04 '20 11:06 pirj