alchemy_cms

https://github.com/magiclabs/alchemy_cms

Ruby

AlchemyCMS is a powerful, flexible and user centric Rails 5 CMS. 🧙🏻‍♂️

Alchemy::Content.translated_label_for

Returns the translated label for a content name.

Translate it in your locale yml file:

  alchemy:
    content_names:
      foo: Bar

Optionally you can scope your content name to an element:

  alchemy:
    content_names:
      article:
        foo: Baz

Source | Google | Stack overflow

Edit

git clone [email protected]:magiclabs/alchemy_cms.git

cd alchemy_cms

open app/models/alchemy/content.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Alchemy--Content-translated_label_for-for-pr


# Commit to git

git add app/models/alchemy/content.rbgit commit -m "better docs for Alchemy::Content.translated_label_for"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Alchemy--Content-translated_label_for-for-pr

hub pull-request


# Celebrate!