Open liurui12w opened 4 years ago
I'm add a new vendor/assets/javascripts/active_admin_flat_skin.js.erb AND config/locales/zh-CN.yml ,
That's ok.
Who has a better way?
Hi, I don't know how to fix the problem. If I understand the process correctly, the template (erb) is used during assets precompilation. So the locale is set, user's preferences doesn't affect it.
This is the workaround that I use (note the id is diplay-filter):
# app/assets/javascripts/active_admin.js
//= require active_admin/base
//= require activeadmin_addons/all
//= require active_admin_flat_skin
//= require active_admin_kleer
# app/assets/javascripts/active_admin_fix.js
jQuery(document).ready(function($) {
$('#diplay-filter').text('Filter');
})