From 9f39b7fe47721eb7aaea04d8b9ee66b557b7eabf Mon Sep 17 00:00:00 2001 From: welpo Date: Mon, 15 Jan 2024 18:52:48 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=A5=20deprecate(i18n)!:=20force=20conf?= =?UTF-8?q?ig.toml=20copyright=20translation=20(#255)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/partials/copyright.html | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/templates/partials/copyright.html b/templates/partials/copyright.html index 4e192d4..b9cfc01 100644 --- a/templates/partials/copyright.html +++ b/templates/partials/copyright.html @@ -7,9 +7,7 @@ {%- endif -%} {%- elif config.extra.translate_copyright -%} {# Old way to translate the copyright through toml files #} - {# When the feature is removed, uncomment below to throw a descriptive error #} - {# {{ throw(message="ERROR: The 'translate_copyright' feature has been deprecated. Please set 'copyright_translations' in config.toml. See the documentation: https://welpo.github.io/tabi/blog/mastering-tabi-settings/#copyright") }} #} - {% set copyright = macros_translate::translate(key="copyright", default=config.extra.copyright, language_strings=language_strings) %} + {{ throw(message="ERROR: The 'translate_copyright' feature has been deprecated. Please set 'copyright_translations' in config.toml. See the documentation: https://welpo.github.io/tabi/blog/mastering-tabi-settings/#copyright") }} {%- endif -%} {# Check for missing variables in the notice #}