Skip to content
Snippets Groups Projects
Unverified Commit 84050098 authored by Ahmad Farhat's avatar Ahmad Farhat Committed by GitHub
Browse files

Solved issue with locales' (#4419)

parent cf6fd9ac
No related branches found
No related tags found
No related merge requests found
//= link_tree ../images
//= link_tree ../builds
//= link_tree ../locales
......@@ -30,7 +30,7 @@ module Api
def show
language = params[:name].tr('-', '_')
render file: Rails.root.join('app', 'assets', 'locales', "#{language}.json")
redirect_to ActionController::Base.helpers.asset_path("#{language}.json")
rescue StandardError
head :not_acceptable
end
......
......@@ -8,6 +8,7 @@ Rails.application.config.assets.version = '1.0'
# Add additional assets to the asset load path.
# Rails.application.config.assets.paths << Emoji.images_path
Rails.application.config.assets.paths << Rails.root.join('node_modules/bootstrap-icons/font')
Rails.application.config.assets.paths << Rails.root.join('app/assets/locales')
# Precompile additional assets.
# application.jsx, application.css, and all non-JS/CSS in the app/assets
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment