Comments (8)
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.
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.
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.
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.
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.
Great to hear that @chrismcg! It will help us a lot :D
from localeapp.
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.
Works great! +1 for merging :D
from localeapp.
Related Issues (20)
- Problem pushing new translations? HOT 10
- Translations not updating in daemon -b mode, puma requires restart to pick up new translations HOT 5
- Incompatible with Ruby 2.4: dependency on json gem ~>1.8 HOT 6
- Localeapp pull not working HOT 1
- Uninitialized constant Rails HOT 6
- `config.reloading_environments = []` not working
- `localeapp pull` sometimes takes forever to reflect added translations. HOT 16
- localeapp.com does not redirect to www.localeapp.com HOT 2
- Leave `.env` alone
- Pull add unwanted line to en.yml HOT 3
- Deprecation Warning in Rails 6 initialization HOT 2
- Remove (or update) wiki page HOT 1
- Option to specify which locales to poll HOT 1
- Selective key pull fails HOT 1
- Excluding certain translations from `localeapp push` HOT 8
- Add Webhooks
- Add option to remove keys not used anymore HOT 1
- ruby 3.0 / rails 6.1 incompatibility issue HOT 3
- Broken with I18n >= 1.9.0 HOT 3
- Use the original filename instead of the locale
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from localeapp.