mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
FEATURE: Overwrite server side I18n keys with API
This commit is contained in:
parent
3720783c1b
commit
060ce9bf2a
4 changed files with 61 additions and 0 deletions
12
db/migrate/20151113205046_create_translation_overrides.rb
Normal file
12
db/migrate/20151113205046_create_translation_overrides.rb
Normal file
|
@ -0,0 +1,12 @@
|
|||
class CreateTranslationOverrides < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :translation_overrides, force: true do |t|
|
||||
t.string :locale, length: 30, null: false
|
||||
t.string :translation_key, null: false
|
||||
t.string :value, null: false
|
||||
t.timestamps null: false
|
||||
end
|
||||
|
||||
add_index :translation_overrides, [:locale, :translation_key], unique: true
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue