{"id":19857025,"url":"https://github.com/johnvuko/i18n-dynamic-translation","last_synced_at":"2025-09-02T23:47:36.133Z","repository":{"id":5651718,"uuid":"6860650","full_name":"johnvuko/i18n-dynamic-translation","owner":"johnvuko","description":"Dynamic translations in model","archived":false,"fork":false,"pushed_at":"2012-12-09T04:42:48.000Z","size":116,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-11T14:15:57.438Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/johnvuko.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-11-26T06:11:51.000Z","updated_at":"2013-01-13T08:08:30.000Z","dependencies_parsed_at":"2022-09-09T20:30:18.269Z","dependency_job_id":null,"html_url":"https://github.com/johnvuko/i18n-dynamic-translation","commit_stats":null,"previous_names":["johnvuko/i18n-dynamic-translation"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnvuko%2Fi18n-dynamic-translation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnvuko%2Fi18n-dynamic-translation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnvuko%2Fi18n-dynamic-translation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnvuko%2Fi18n-dynamic-translation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/johnvuko","download_url":"https://codeload.github.com/johnvuko/i18n-dynamic-translation/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241246111,"owners_count":19933299,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-12T14:17:15.138Z","updated_at":"2025-02-28T21:45:23.586Z","avatar_url":"https://github.com/johnvuko.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"I18n Dynamic Translation\n======================\n\nPlugin for have translations in model.\nSave the translations in database with gem 'i18n-active_record'.\nVery usefull for multilingual site.\nYou have to use Ruby 1.9.3 due to bug in 1.9.2 MRI.\n\nInstallation\n------------\n\nInclude the gem in your Gemfile:\n\n\tgem 'i18n-active_record',\n\t     :git =\u003e 'git://github.com/jonathantribouharet/i18n-active_record.git',\n\t     :branch =\u003e 'rails-3.2',\n\t     :require =\u003e 'i18n/active_record'\n\tgem 'i18n-dynamic-translation', :git =\u003e 'https://github.com/jonathantribouharet/i18n-dynamic-translation'\n\n\nUsage\n-----\n\nIn your model:\n\t\n\tclass Article \u003c ActiveRecord::Base\n\t\t\n\t\tdynamic_translation :name\n\n\tend\n\nIn your form:\n\n\t\u003c%= form_for @article fo |f| %\u003e\n\t\t\u003c% for locale in I18n.available_locales %\u003e\n\t\t\t\u003c%= f.text_field \"name_#{locale}_raw\"\n\t\t\u003c% end %\u003e\n\n\t\t\u003c%= f.submit %\u003e\n\t\u003c% end %\u003e\n\nIn your html:\n\n\tI18n.locale : \u003c%= @article.name %\u003e\n\tEN : \u003c%= @article.name_en %\u003e\n\tFR : \u003c%= @article.name_fr %\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnvuko%2Fi18n-dynamic-translation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohnvuko%2Fi18n-dynamic-translation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnvuko%2Fi18n-dynamic-translation/lists"}