Add ability for jump to be translated into other languages

This commit is contained in:
Dale Davies
2023-04-06 17:49:27 +01:00
parent 5414f2b644
commit 0c2c320c75
26 changed files with 267 additions and 37 deletions

View File

@@ -92,4 +92,21 @@ class Status {
return self::STATUS_UNKNOWN;
}
}
/**
* Return all the strings to be used by JS on the frontend.
*
* @return array
*/
public static function get_strings_for_js(Language $language): array {
return [
'status' => [
'status' => $language->get('status.status'),
'error' => $language->get('status.error'),
'offline' => $language->get('status.offline'),
'online' => $language->get('status.online'),
'unknown' => $language->get('status.unknown'),
]
];
}
}