- Parental Controls
+
{i18n._('settings_parental_controls')}
{
const savedPin = getSaved('kidsMode');
@@ -511,13 +524,12 @@ export default function() {
}
location.reload();
} else {
- alert('Incorrect PIN!');
+ alert(i18n._('settings_incorrect_pin'));
e.preventDefault();
}
return;
}
-
- const pin = prompt('PIN is required to setup parental controls, after which the app will reload to integrate the parts manager.');
+ const pin = prompt(i18n._('settings_pin'));
if (pin) {
save('kidsMode', pin);
location.reload();
@@ -600,6 +612,11 @@ async function importSettings(e: Event) {
}
}
+export function callChangeLanguage(e: Event) {
+ const selectElement = e.target as HTMLSelectElement;
+ const selectedLanguage = selectElement.value;
+ changeLanguage(selectedLanguage);
+}
// emergency use
if (params.has('reset')) {
diff --git a/src/components/UpdatePrompt.tsx b/src/components/UpdatePrompt.tsx
index e9d5532f..dbc73ac9 100644
--- a/src/components/UpdatePrompt.tsx
+++ b/src/components/UpdatePrompt.tsx
@@ -1,5 +1,6 @@
import { createSignal, onMount } from "solid-js";
import './UpdatePrompt.css';
+import {i18n} from "../scripts/i18n.ts";
export default function UpdatePrompt(handleUpdate: () => void) {
@@ -33,11 +34,11 @@ export default function UpdatePrompt(handleUpdate: () => void) {
{fullList().length > 2 ?
fullList().map((text: string) => ({text}))
:
- Read all previous changes
+ {i18n._('settings_up_read_all_prev')}
}
-
+