Feature: API for updating account settings (#645)
* Feature: API for updating account settings - API to update account locale - API to update account name - API to show account info
This commit is contained in:
18
config/initializers/languages.rb
Normal file
18
config/initializers/languages.rb
Normal file
@@ -0,0 +1,18 @@
|
||||
# Based on ISO_639-3 Codes. ref: https://en.wikipedia.org/wiki/List_of_ISO_639-2_codes
|
||||
# This Hash is used in account model, so do not change the index for existing languages
|
||||
|
||||
LANGUAGES_CONFIG = {
|
||||
0 => { name: 'English', iso_639_3_code: 'eng' },
|
||||
1 => { name: 'Arabic', iso_639_3_code: 'ara' },
|
||||
2 => { name: 'Dutch', iso_639_3_code: 'nld' },
|
||||
3 => { name: 'French', iso_639_3_code: 'fra' },
|
||||
4 => { name: 'German', iso_639_3_code: 'deu' },
|
||||
5 => { name: 'Hindi', iso_639_3_code: 'hin' },
|
||||
6 => { name: 'Italian', iso_639_3_code: 'ita' },
|
||||
7 => { name: 'Japanese', iso_639_3_code: 'jpn' },
|
||||
8 => { name: 'Korean', iso_639_3_code: 'kor' },
|
||||
9 => { name: 'Portugues', iso_639_3_code: 'por' },
|
||||
10 => { name: 'Russian', iso_639_3_code: 'rus' },
|
||||
11 => { name: 'Chinese', iso_639_3_code: 'zho' },
|
||||
12 => { name: 'Spanish', iso_639_3_code: 'spa' }
|
||||
}.freeze
|
||||
@@ -21,7 +21,7 @@ Rails.application.routes.draw do
|
||||
namespace :v1 do
|
||||
# ----------------------------------
|
||||
# start of account scoped api routes
|
||||
resources :accounts, only: [:create], module: :accounts do
|
||||
resources :accounts, only: [:create, :show, :update], module: :accounts do
|
||||
namespace :actions do
|
||||
resource :contact_merge, only: [:create]
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user