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:
taitus
2019-01-25 16:32:46 +01:00
committed by voodoorai2000
parent cbd7ab7179
commit 72d1893703
4 changed files with 104 additions and 2 deletions

View File

@@ -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">