Chore: Add translated languages to account settings (#826)

* Add available languages in account settings

Co-authored-by: Sojan <sojan@pepalo.com>
This commit is contained in:
Pranav Raj S
2020-05-06 13:38:36 +05:30
committed by GitHub
parent d6d15c8c3c
commit c7120e9637
37 changed files with 473 additions and 250 deletions

View File

@@ -18,6 +18,7 @@ class Api::V1::Widget::BaseController < ApplicationController
def set_web_widget
@web_widget = ::Channel::WebWidget.find_by!(website_token: permitted_params[:website_token])
@account = @web_widget.account
switch_locale @account
end
def set_contact