Retain attributes in localizable_consts

These attributes (such as doc comments) should be retained.
This commit is contained in:
Daniel Rainer
2025-06-08 01:42:17 +02:00
parent 80131acff2
commit d3f287c520

View File

@@ -194,6 +194,7 @@ macro_rules! localizable_consts {
)*
) => {
$(
$(#[$attr])*
$vis const $name: $crate::wutil::gettext::LocalizableString =
localizable_string!($string);
)*