From 10fba9b39f23e88d0a16e1f4f8c6b188f66849b2 Mon Sep 17 00:00:00 2001 From: lin-d-hop Date: Sun, 5 May 2019 13:30:39 +0100 Subject: [PATCH] Add translation to order cycle spinner lazy text --- app/views/admin/order_cycles/_loading_flash.html.haml | 6 ++++-- config/locales/en.yml | 3 +++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/app/views/admin/order_cycles/_loading_flash.html.haml b/app/views/admin/order_cycles/_loading_flash.html.haml index c579a294af..ef810e03d1 100644 --- a/app/views/admin/order_cycles/_loading_flash.html.haml +++ b/app/views/admin/order_cycles/_loading_flash.html.haml @@ -1,4 +1,6 @@ %div.sixteen.columns.alpha.omega#loading{ ng: { cloak: true, if: 'RequestMonitor.loading' } } %img.spinner{ src: "/assets/spinning-circles.svg" } - %h1{ ng: { hide: 'orderCycles.length > 0' } } LOADING ORDER CYCLES - %h1{ ng: { show: 'orderCycles.length > 0' } } LOADING... + %h1{ ng: { hide: 'orderCycles.length > 0' } } + =t('.loading_order_cycles') + %h1{ ng: { show: 'orderCycles.length > 0' } } + =t('.loading') diff --git a/config/locales/en.yml b/config/locales/en.yml index a6609f2f5a..a7d270db1e 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -856,6 +856,9 @@ en: user_already_exists: "User already exists" error: "Something went wrong" order_cycles: + loading_flash: + loading_order_cycles: LOADING ORDER CYCLES + loading: LOADING... edit: advanced_settings: Advanced Settings update_and_close: Update and Close