mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
autofmt
This commit is contained in:
@@ -308,10 +308,10 @@ NBox {
|
||||
if (section !== root.sectionId) {
|
||||
var label = root.getSectionLabel(section);
|
||||
var displayLabel = I18n.tr("positions." + section);
|
||||
|
||||
|
||||
// If translation missing (returns key), fallback to capitalized label
|
||||
if (displayLabel === "positions." + section) {
|
||||
displayLabel = label.charAt(0).toUpperCase() + label.slice(1);
|
||||
displayLabel = label.charAt(0).toUpperCase() + label.slice(1);
|
||||
}
|
||||
|
||||
items.push({
|
||||
|
||||
Reference in New Issue
Block a user