Localized post categories

This commit is contained in:
2024-12-22 15:20:33 +08:00
parent 1256f440bd
commit fd2eb5cda6
6 changed files with 90 additions and 43 deletions

View File

@@ -981,7 +981,12 @@ class _PostTagsList extends StatelessWidget {
children: [
const Icon(Symbols.category, size: 20),
const Gap(4),
Text(ele.alias, style: GoogleFonts.robotoMono()),
Text(
'postCategory${ele.alias.capitalize()}'.trExists()
? 'postCategory${ele.alias.capitalize()}'.tr()
: ele.alias,
style: GoogleFonts.robotoMono(),
),
],
),
onTap: () {},