mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-05-14 16:22:46 -04:00
Added Missing i18n Strings (#2398)
* Update hypr-colors.conf * added i18n strings * added missing i18n strings * Update TypographyMotionTab.qml
This commit is contained in:
@@ -251,59 +251,69 @@ Item {
|
||||
settingKey: "fontWeight"
|
||||
text: I18n.tr("Font Weight")
|
||||
description: I18n.tr("Select font weight for UI text")
|
||||
options: ["Thin", "Extra Light", "Light", "Regular", "Medium", "Demi Bold", "Bold", "Extra Bold", "Black"]
|
||||
options: [
|
||||
I18n.tr("Thin"),
|
||||
I18n.tr("Extra Light"),
|
||||
I18n.tr("Light"),
|
||||
I18n.tr("Regular"),
|
||||
I18n.tr("Medium"),
|
||||
I18n.tr("Demi Bold"),
|
||||
I18n.tr("Bold"),
|
||||
I18n.tr("Extra Bold"),
|
||||
I18n.tr("Black")
|
||||
]
|
||||
currentValue: {
|
||||
switch (SettingsData.fontWeight) {
|
||||
case Font.Thin:
|
||||
return "Thin";
|
||||
return I18n.tr("Thin");
|
||||
case Font.ExtraLight:
|
||||
return "Extra Light";
|
||||
return I18n.tr("Extra Light");
|
||||
case Font.Light:
|
||||
return "Light";
|
||||
return I18n.tr("Light");
|
||||
case Font.Normal:
|
||||
return "Regular";
|
||||
return I18n.tr("Regular");
|
||||
case Font.Medium:
|
||||
return "Medium";
|
||||
return I18n.tr("Medium");
|
||||
case Font.DemiBold:
|
||||
return "Demi Bold";
|
||||
return I18n.tr("Demi Bold");
|
||||
case Font.Bold:
|
||||
return "Bold";
|
||||
return I18n.tr("Bold");
|
||||
case Font.ExtraBold:
|
||||
return "Extra Bold";
|
||||
return I18n.tr("Extra Bold");
|
||||
case Font.Black:
|
||||
return "Black";
|
||||
return I18n.tr("Black");
|
||||
default:
|
||||
return "Regular";
|
||||
return I18n.tr("Regular");
|
||||
}
|
||||
}
|
||||
onValueChanged: value => {
|
||||
var weight;
|
||||
switch (value) {
|
||||
case "Thin":
|
||||
case I18n.tr("Thin"):
|
||||
weight = Font.Thin;
|
||||
break;
|
||||
case "Extra Light":
|
||||
case I18n.tr("Extra Light"):
|
||||
weight = Font.ExtraLight;
|
||||
break;
|
||||
case "Light":
|
||||
case I18n.tr("Light"):
|
||||
weight = Font.Light;
|
||||
break;
|
||||
case "Regular":
|
||||
case I18n.tr("Regular"):
|
||||
weight = Font.Normal;
|
||||
break;
|
||||
case "Medium":
|
||||
case I18n.tr("Medium"):
|
||||
weight = Font.Medium;
|
||||
break;
|
||||
case "Demi Bold":
|
||||
case I18n.tr("Demi Bold"):
|
||||
weight = Font.DemiBold;
|
||||
break;
|
||||
case "Bold":
|
||||
case I18n.tr("Bold"):
|
||||
weight = Font.Bold;
|
||||
break;
|
||||
case "Extra Bold":
|
||||
case I18n.tr("Extra Bold"):
|
||||
weight = Font.ExtraBold;
|
||||
break;
|
||||
case "Black":
|
||||
case I18n.tr("Black"):
|
||||
weight = Font.Black;
|
||||
break;
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user