From ceec0e6e04aae7b4d9a9fc2f3b75e9f00a320111 Mon Sep 17 00:00:00 2001 From: tophf Date: Mon, 24 Jan 2022 20:18:44 +0300 Subject: [PATCH] keep i18n id intact --- _locales/en/messages.json | 2 +- injection-order/injection-order.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/_locales/en/messages.json b/_locales/en/messages.json index 74fa7bb9..6fe7b574 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -1697,7 +1697,7 @@ "message": "Style injection order", "description": "Tooltip for the button in the manager to open the dialog and also the title of this dialog" }, - "styleInjectionOrderHint_main": { + "styleInjectionOrderHint": { "message": "Drag'n'drop a style to change its position. Styles are injected sequentially in the order shown below so a style further down the list can override the earlier styles.", "description": "Hint in the injection order dialog in the manager" }, diff --git a/injection-order/injection-order.js b/injection-order/injection-order.js index b74e9114..4c0606f8 100644 --- a/injection-order/injection-order.js +++ b/injection-order/injection-order.js @@ -69,7 +69,7 @@ async function InjectionOrder(show = true) { }); DraggableList(ol, {scrollContainer: ol}); return $create('section', {dataset: {[type]: ''}}, [ - $create('header', t('styleInjectionOrderHint_' + type)), + $create('header', t(`styleInjectionOrderHint${type === 'main' ? '' : '_' + type}`)), ol, ]); }