danjesus / gulp-phrase

Simple gulp plugin to use phraseapp api
MIT License
4 stars 0 forks source link

Convert dot-notation to proper nesting #4

Open StevenLangbroek opened 9 years ago

StevenLangbroek commented 9 years ago

Right now the output is for example:

{
    "faq.group0.entry0.answer": "some content"
}

ideally, this would be:

{
    "faq0": {
        "group0": {
            "entry0": {
                "answer": "some content"
            }
        }
    }
}
danjesus commented 9 years ago

@StevenLangbroek how are you doing this today? You download directly from phraseapp so?

StevenLangbroek commented 9 years ago

Right now the entire project still lives in Ruby on Rails, so we download YAML files, and RoR takes care of the nesting (among other things).

danjesus commented 9 years ago

Got it, for now I'm keeping the simple design just downloading simple_json.

I will make improvements to the project yet.

But if you use rails can use the phrase gem to automate the process.

Have you taken a look at this link? http://docs.phraseapp.com/guides/setup/localize-ruby-on-rails-applications-with-phraseapp/

Best

StevenLangbroek commented 9 years ago

Yeah that's what we're using for now, but we want to rip the app out of rails and just serve it from nginx. We're still missing some bits of functionality thought (smart i18n fallbacks for example), and probably sticking to it for now.

Op zo 8 mrt. 2015 om 00:07 schreef Dan Jesus notifications@github.com:

Got it, for now I'm keeping the simple design just downloading simple_json.

I will make improvements to the project yet.

But if you use rails can use the phrase gem to automate the process.

Have you taken a look at this link? http://docs.phraseapp.com/guides/setup/localize-ruby-on-rails-applications-with-phraseapp/

Best

— Reply to this email directly or view it on GitHub https://github.com/danjesus/gulp-phrase/issues/4#issuecomment-77715531.

danjesus commented 9 years ago

I understand now, I'm working on some changes soon we will have more resources to support this lib.