Code Monkey home page Code Monkey logo

Comments (8)

chrismcg avatar chrismcg commented on June 3, 2024

Thanks for the suggestion. It crossed my mind before but I didn't get round to it. I'll have a proper look into what's involved sometime tomorrow and get back to you.

from localeapp.

chrismcg avatar chrismcg commented on June 3, 2024

We've been talking this over, and were thinking of something like:

# just create the key
$ localeapp add simple_form.labels.something

# create the key and english translation
$ localeapp add simple_form.labels.something en:"My cool label"

# create key, english and spanish [google translate spanish :)]
$ localeapp add simple_form.labels.something en:"My cool label" es:"Mi sello fresco"

Was there a reason you used the en.foo.bar form above? Don't want to do something that's not useful for you!

from localeapp.

oriolgual avatar oriolgual commented on June 3, 2024

I really like this format, it lets you add many translations with a single
command :-)

Please let me know if/how I can help!
El 12/09/2011 16:11, "Chris McGrath" <
[email protected]>
escribi:

We've been talking this over, and were thinking of something like:

just create the key

$ localeapp add simple_form.labels.something

create the key and english translation

$ localeapp add simple_form.labels.something en:"My cool label"

create key, english and spanish [google translate spanish :)]

$ localeapp add simple_form.labels.something en:"My cool label" es:"Mi
sello fresco"

Was there a reason you used the en.foo.bar form above? Don't want to do
something that's not useful for you!

Reply to this email directly or view it on GitHub:
#3 (comment)

from localeapp.

tigrish avatar tigrish commented on June 3, 2024

As an added bonus with the way the API is set up atm,

$ localeapp add simple_form.labels.something en:"My cool label"

and then

$ localeapp add simple_form.labels.something en:"My cool label - updated"

would update the translation for en.

from localeapp.

chrismcg avatar chrismcg commented on June 3, 2024

I started poking at this to see if I could just write specs but am halfway through doing it now :) Will have something to push tomorrow.

from localeapp.

oriolgual avatar oriolgual commented on June 3, 2024

Great to hear that @chrismcg! It will help us a lot :D

from localeapp.

chrismcg avatar chrismcg commented on June 3, 2024

Have just push a feature/add_command feature branch. Can you point your Gemfile at it and let me know if it's good enough for what you guys want.

https://github.com/Locale/localeapp/tree/feature/add_command

from localeapp.

oriolgual avatar oriolgual commented on June 3, 2024

Works great! +1 for merging :D

from localeapp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.