mirror of
https://github.com/venera-app/venera.git
synced 2025-09-27 07:47:24 +00:00
improve favorites page
This commit is contained in:
@@ -56,7 +56,7 @@ extension TagsTranslation on String{
|
||||
String get translateTagsToCN => _translateTags(this);
|
||||
|
||||
static String translateTag(String tag) {
|
||||
if(tag.contains(':')) {
|
||||
if(tag.contains(':') && tag.indexOf(':') == tag.lastIndexOf(':')) {
|
||||
var [namespace, text] = tag.split(':');
|
||||
return translationTagWithNamespace(text, namespace);
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user