🌐 ags(i18n): translate control-center pages

This commit is contained in:
retrozinndev
2025-04-23 19:30:37 -03:00
parent cd96236878
commit e28e2c7c2f
9 changed files with 139 additions and 46 deletions
+2 -5
View File
@@ -1,12 +1,9 @@
import { GLib } from "astal";
import en_US from "./lang/en_US";
import pt_BR from "./lang/pt_BR";
const i18nKeys = {
"en_US": en_US,
"pt_BR": pt_BR
"en_US": (await import("./lang/en_US")).default,
"pt_BR": (await import("./lang/pt_BR")).default
};
const languages: Array<string> = Object.keys(i18nKeys);
+33 -4
View File
@@ -5,6 +5,13 @@ export default {
cancel: "Cancel",
accept: "Ok",
devices: "Devices",
others: "Others",
connected: "Connected",
disconnected: "Disconnected",
unknown: "Unknown",
connecting: "Connecting",
bar: {
apps: {
@@ -19,10 +26,6 @@ export default {
network: {
network: "Network",
connected: "Connected",
disconnected: "Disconnected",
unknown: "Unknown",
connecting: "Connecting",
wireless: "Wireless",
wired: "Wired"
},
@@ -38,6 +41,32 @@ export default {
title: "Night Light",
default_desc: "Fidelity"
}
},
pages: {
more_settings: "More settings",
mixer: {
title: "Mixer",
description: "Control per-application volume"
},
night_light: {
title: "Night Light",
description: "Control Night Light and Gamma filters",
gamma: "Gamma",
temperature: "Temperature"
},
bluetooth: {
title: "Bluetooth",
description: "Manage Bluetooth devices",
new_devices: "New devices",
adapters: "Adapters",
paired_devices: "Paired Devices",
start_discovering: "Start discovering",
stop_discovering: "Stop discovering"
},
network: {
title: "Network",
interface: "Interface"
}
}
},
ask_popup: {
+33 -4
View File
@@ -5,6 +5,13 @@ export default {
cancel: "Cancelar",
accept: "Ok",
devices: "Dispositivos",
others: "Outros",
connected: "Conectado",
disconnected: "Desconectado",
unknown: "Desconhecido",
connecting: "Conectando",
bar: {
apps: {
@@ -19,10 +26,6 @@ export default {
network: {
network: "Rede",
connected: "Conectado",
disconnected: "Desconectado",
unknown: "Desconhecido",
connecting: "Conectando",
wireless: "Wi-Fi",
wired: "Cabeada"
},
@@ -38,6 +41,32 @@ export default {
title: "Luz Noturna",
default_desc: "Fidelidade"
}
},
pages: {
more_settings: "Mais configurações",
mixer: {
title: "Mixer de Volume",
description: "Controle o volume dos aplicativos"
},
night_light: {
title: "Luz Noturna",
description: "Controle os filtros de Luz Noturna e Gama",
temperature: "Temperatura",
gamma: "Gama"
},
bluetooth: {
title: "Bluetooth",
description: "Gerencie dispositivos Bluetooth",
new_devices: "Novos Dispositivos",
adapters: "Adaptadores",
paired_devices: "Dispositivos Pareados",
start_discovering: "Começar a procurar dispositivos",
stop_discovering: "Parar de procurar dispositivos"
},
network: {
title: "Rede",
interface: "Interface"
}
}
},
ask_popup: {
+37 -6
View File
@@ -2,7 +2,15 @@ export type i18nStruct = {
language: string,
cancel: string,
accept: string
accept: string,
connected: string,
disconnected: string,
connecting: string,
unknown: string,
devices: string,
others: string,
bar: {
apps: {
@@ -17,17 +25,13 @@ export type i18nStruct = {
network: {
network: string,
connected: string,
disconnected: string,
unknown: string,
connecting: string,
wireless: string,
wired: string
},
recording: {
title: string,
disabled_desc: string,
enabled_desc: string,
enabled_desc: string
},
dnd: {
title: string
@@ -36,6 +40,33 @@ export type i18nStruct = {
title: string,
default_desc: string
}
},
pages: {
more_settings: string,
mixer: {
title: string,
description: string
},
network: {
title: string,
interface: string
},
bluetooth: {
title: string,
description: string,
adapters: string,
new_devices: string,
paired_devices: string,
start_discovering: string,
stop_discovering: string
},
night_light: {
title: string,
description: string,
temperature: string,
gamma: string
}
}
},
ask_popup: {