mirror of
https://github.com/end-4/dots-hyprland.git
synced 2026-06-21 00:09:58 -05:00
i18n: Refactor string formatting to use arg() method for translations
This commit is contained in:
@@ -95,7 +95,7 @@ Rectangle {
|
||||
font.pixelSize: Appearance.font.pixelSize.smaller
|
||||
color: Appearance.colors.colOnLayer2
|
||||
// text: `Page ${root.responseData.page}`
|
||||
text: StringUtils.format(Translation.tr("Page {0}"), root.responseData.page)
|
||||
text: Translation.tr("Page %1").arg(root.responseData.page)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user