Manage the remote translation button display
- Add remote_translation_button partial to layout - Only display button when we have remote_translations and if current locale is include on available locales from remote translations service. - Recover available locales from remote translations service. Use daily_cache to detect every day if remote translation service has added new available locale. Co-Authored-By: alessandro <agileontheweb@gmail.com>
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
<header>
|
||||
<% if display_remote_translation_info?(@remote_translations, I18n.locale) %>
|
||||
<%= render "shared/remote_translations_button", remote_translations: @remote_translations %>
|
||||
<% end %>
|
||||
|
||||
<div class="top-links">
|
||||
<div class="row">
|
||||
|
||||
Reference in New Issue
Block a user