feat: add en-UK locale

update
This commit is contained in:
q9i 2024-03-09 16:17:29 -08:00 committed by GitButler
parent ae3da6e985
commit 56bc536192
59 changed files with 5 additions and 5 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -43,7 +43,7 @@
</SettingsInput>
<SettingsSelector
setting="voiceLang"
options={['en-US', 'en-RU']}
options={['en-US', 'en-RU', 'en-UK']}
tooltip="Selects the language/locale used for Jankboard voice prompts. Does not affect application language (ie. Jankboard itself will always be in English)."
>Voice Prompt Language</SettingsSelector
>

View file

@ -2,7 +2,7 @@
import { writable } from 'svelte/store'
type SupportedLanguage = 'en-US' | 'en-RU'
type SupportedLanguage = 'en-US' | 'en-RU' | 'en-UK'
export interface SettingsStoreData {
disableAnnoyances: boolean
@ -18,8 +18,8 @@ export const defaults: SettingsStoreData = {
goWoke: true, // go woke (for showing parents or other officials where DEI has taken over), disables "offensive" sequences
fastStartup: false, // skip the loading splash screen (for development purposes. Setting this from within the app has no effect.)
randomWeight: 1, // the weight of random events (multiplied by the original probability)
voiceLang: 'en-US',
sentry: true,
voiceLang: 'en-US', // locale-specific voice for alerts
sentry: true, // protect the robot and operator from foreign threats
}
const createSequenceStore = () => {

View file

@ -8,7 +8,7 @@ import { settingsStore } from '../stores/settingsStore'
* @param lang - the language of the audio
* @return the path of the audio file
*/
type SupportedLanguage = 'en-US' | 'en-RU'
type SupportedLanguage = 'en-US' | 'en-RU' | 'en-UK'
export default function getVoicePath(audio: string, lang?: SupportedLanguage) {
console.log(get(settingsStore).voiceLang)