💥 deprecate(i18n)!: force config.toml copyright translation (#255)

main
welpo 1 year ago
parent 1a1a7f79f2
commit 9f39b7fe47
No known key found for this signature in database
GPG Key ID: A2F978CF4EC1F5A6

@ -7,9 +7,7 @@
{%- endif -%} {%- endif -%}
{%- elif config.extra.translate_copyright -%} {%- elif config.extra.translate_copyright -%}
{# Old way to translate the copyright through toml files #} {# 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") }}
{# {{ 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) %}
{%- endif -%} {%- endif -%}
{# Check for missing variables in the notice #} {# Check for missing variables in the notice #}

Loading…
Cancel
Save