mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-05 13:35:21 +02:00
Allow users to set preferred locale in settings and provide basic date and time localization support (#1226)
* Add basic date and time localization * Normalize translations * Localize transaction dates * Removed unsupported Rails locales
This commit is contained in:
parent
7fabca4679
commit
ab40289eb4
130 changed files with 25190 additions and 10 deletions
5
db/migrate/20241001181256_add_locale_preference.rb
Normal file
5
db/migrate/20241001181256_add_locale_preference.rb
Normal file
|
@ -0,0 +1,5 @@
|
|||
class AddLocalePreference < ActiveRecord::Migration[7.2]
|
||||
def change
|
||||
add_column :families, :locale, :string, default: "en"
|
||||
end
|
||||
end
|
3
db/schema.rb
generated
3
db/schema.rb
generated
|
@ -10,7 +10,7 @@
|
|||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema[7.2].define(version: 2024_09_25_112218) do
|
||||
ActiveRecord::Schema[7.2].define(version: 2024_10_01_181256) do
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "pgcrypto"
|
||||
enable_extension "plpgsql"
|
||||
|
@ -214,6 +214,7 @@ ActiveRecord::Schema[7.2].define(version: 2024_09_25_112218) do
|
|||
t.datetime "updated_at", null: false
|
||||
t.string "currency", default: "USD"
|
||||
t.datetime "last_synced_at"
|
||||
t.string "locale", default: "en"
|
||||
end
|
||||
|
||||
create_table "good_job_batches", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue