10.04.2017 Views

Rails I18n – Seven Best Practices That You Should Know About

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Rails</strong> Internationalization (<strong>I18n</strong>) - <strong>Seven</strong> <strong>Best</strong> <strong>Practices</strong> <strong>That</strong> <strong>You</strong> <strong>Should</strong> <strong>Know</strong> <strong>About</strong><br />

Table of Content<br />

Split Translations 4<br />

Take Advantage Of Nesting 5<br />

Employ “Lazy” Lookups 6<br />

Enforce Available Locales 7<br />

Utilize Localized Views 8<br />

Take Advantage Of Variables 8<br />

Helper Methods 10<br />

Stick With PhraseApp! 10<br />

Conclusion 11<br />

phraseapp.com | sales@phraseapp.com | +49-40-357-187-76 | twitter.com/phraseapp | facebook.com/phraseapp | linkedin.com/company/phraseapp

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!