All Projects → GBH → acts_as_localized

GBH / acts_as_localized

Licence: MIT license
Localization accessor mechanism for AR models

Programming Languages

ruby
36898 projects - #4 most used programming language

Labels

Projects that are alternatives of or similar to acts as localized

nuxt-i18n-routing
Localized routing with Nuxt.js
Stars: ✭ 32 (+166.67%)
Mutual labels:  i18n
vue-element-admin-ts
vue-element-admin 的 typescript 版本
Stars: ✭ 101 (+741.67%)
Mutual labels:  i18n
wlc
Weblate command line client
Stars: ✭ 22 (+83.33%)
Mutual labels:  i18n
oojs-ui
OOUI is a modern JavaScript UI library with strong cross-browser support. It is the standard library for MediaWiki and Wikipedia. This is a mirror from https://gerrit.wikimedia.org. Main website:
Stars: ✭ 45 (+275%)
Mutual labels:  i18n
grunt-assemble-i18n
Assemble middleware for adding i18n support to projects.
Stars: ✭ 25 (+108.33%)
Mutual labels:  i18n
inlang
Open Source Localization Solution for Software.
Stars: ✭ 160 (+1233.33%)
Mutual labels:  i18n
findadoc-localization
Translations for Findadoc Japan
Stars: ✭ 17 (+41.67%)
Mutual labels:  i18n
extract-react-intl
Extract react-intl messages
Stars: ✭ 18 (+50%)
Mutual labels:  i18n
i18n
internationalize projects to Arabic
Stars: ✭ 67 (+458.33%)
Mutual labels:  i18n
tr4n5l4te
Use Google Translate without an API key.
Stars: ✭ 32 (+166.67%)
Mutual labels:  i18n
vite-vue-admin
🎉🎉使用Vite + Vue3 + TypeScript + Element-plus + Mock开发的后台管理系统🎉🎉
Stars: ✭ 97 (+708.33%)
Mutual labels:  i18n
public
util toolkit for go.golang 通用函数包
Stars: ✭ 135 (+1025%)
Mutual labels:  i18n
Angular-Gulp-Boilerplate
Clean but full-featured AngularJS boilerplate using Gulp workflow and best practices
Stars: ✭ 30 (+150%)
Mutual labels:  i18n
gatsby-i18n
Gatsby plugin that provides i18n support
Stars: ✭ 25 (+108.33%)
Mutual labels:  i18n
ii18n
II18N - Go i18n library.
Stars: ✭ 20 (+66.67%)
Mutual labels:  i18n
go-locale
GoLang library used to retrieve the current locale(s) of the operating system.
Stars: ✭ 16 (+33.33%)
Mutual labels:  i18n
pydantic-i18n
pydantic-i18n is an extension to support an i18n for the pydantic error messages.
Stars: ✭ 32 (+166.67%)
Mutual labels:  i18n
translation
👅 Translations (symfony/translation) to Nette Framework (@nette)
Stars: ✭ 55 (+358.33%)
Mutual labels:  i18n
archived-bot
A Discord music bot serving music in over 3 million discord servers
Stars: ✭ 496 (+4033.33%)
Mutual labels:  i18n
gettext-extractor
A flexible and powerful Gettext message extractor with support for JavaScript, TypeScript, JSX and HTML.
Stars: ✭ 82 (+583.33%)
Mutual labels:  i18n

ActsAsLocalized

Gem Version Gem Downloads Build Status

ActsAsLocalized extends ActiveRecord to add localization mechanism for model attributes.

Example

create_table :pictures do |t|
  t.string :title_en
  t.string :title_fr
  t.text :description_en
  t.text :description_fr
end

class Picture < ActiveRecord::Base
  acts_as_localized :title, :description
end

picture = Picture.create!(
  :title_en       => 'Title EN',
  :title_fr       => 'Title FR',
  :description_en => 'Description EN',
  :description_fr => 'Description FR',
)

I18n.locale = :en
picture.title #=> Title EN
picture.title = 'Updated Title EN' # same as `picture.title_en=`

I18n.locale = :fr
picture.title # => Title FR
picture.title = 'Updated Title FR' # same as `picture.title_fr=`

Copyright 2015 Oleg Khabarov

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].