feat: add en-UK locale
update
This commit is contained in:
parent
ae3da6e985
commit
56bc536192
59 changed files with 5 additions and 5 deletions
BIN
client/public/static/voices/en-UK/adaptive-cruise-control.wav
Normal file
BIN
client/public/static/voices/en-UK/adaptive-cruise-control.wav
Normal file
Binary file not shown.
BIN
client/public/static/voices/en-UK/all-brakes-disengaged.wav
Normal file
BIN
client/public/static/voices/en-UK/all-brakes-disengaged.wav
Normal file
Binary file not shown.
BIN
client/public/static/voices/en-UK/autonomous-period-started.wav
Normal file
BIN
client/public/static/voices/en-UK/autonomous-period-started.wav
Normal file
Binary file not shown.
BIN
client/public/static/voices/en-UK/battery-critically-low.wav
Normal file
BIN
client/public/static/voices/en-UK/battery-critically-low.wav
Normal file
Binary file not shown.
BIN
client/public/static/voices/en-UK/battery-faults-detected.wav
Normal file
BIN
client/public/static/voices/en-UK/battery-faults-detected.wav
Normal file
Binary file not shown.
BIN
client/public/static/voices/en-UK/battery-good.wav
Normal file
BIN
client/public/static/voices/en-UK/battery-good.wav
Normal file
Binary file not shown.
BIN
client/public/static/voices/en-UK/battery-low.wav
Normal file
BIN
client/public/static/voices/en-UK/battery-low.wav
Normal file
Binary file not shown.
BIN
client/public/static/voices/en-UK/breaching-1323-mainframe.wav
Normal file
BIN
client/public/static/voices/en-UK/breaching-1323-mainframe.wav
Normal file
Binary file not shown.
BIN
client/public/static/voices/en-UK/breaching-254-mainframe.wav
Normal file
BIN
client/public/static/voices/en-UK/breaching-254-mainframe.wav
Normal file
Binary file not shown.
BIN
client/public/static/voices/en-UK/breaching-fms.wav
Normal file
BIN
client/public/static/voices/en-UK/breaching-fms.wav
Normal file
Binary file not shown.
BIN
client/public/static/voices/en-UK/breaching-monte-vista.wav
Normal file
BIN
client/public/static/voices/en-UK/breaching-monte-vista.wav
Normal file
Binary file not shown.
BIN
client/public/static/voices/en-UK/bullying-rohan.wav
Normal file
BIN
client/public/static/voices/en-UK/bullying-rohan.wav
Normal file
Binary file not shown.
Binary file not shown.
BIN
client/public/static/voices/en-UK/collision-detected.wav
Normal file
BIN
client/public/static/voices/en-UK/collision-detected.wav
Normal file
Binary file not shown.
BIN
client/public/static/voices/en-UK/collision-imminent.wav
Normal file
BIN
client/public/static/voices/en-UK/collision-imminent.wav
Normal file
Binary file not shown.
BIN
client/public/static/voices/en-UK/critical-robot-failure.wav
Normal file
BIN
client/public/static/voices/en-UK/critical-robot-failure.wav
Normal file
Binary file not shown.
BIN
client/public/static/voices/en-UK/cruise-control-engaged.wav
Normal file
BIN
client/public/static/voices/en-UK/cruise-control-engaged.wav
Normal file
Binary file not shown.
BIN
client/public/static/voices/en-UK/deep-bozo-buffering.wav
Normal file
BIN
client/public/static/voices/en-UK/deep-bozo-buffering.wav
Normal file
Binary file not shown.
BIN
client/public/static/voices/en-UK/deep-bozo-has-detected.wav
Normal file
BIN
client/public/static/voices/en-UK/deep-bozo-has-detected.wav
Normal file
Binary file not shown.
BIN
client/public/static/voices/en-UK/deep-bozo-has-sentience.wav
Normal file
BIN
client/public/static/voices/en-UK/deep-bozo-has-sentience.wav
Normal file
Binary file not shown.
BIN
client/public/static/voices/en-UK/doom-engaged.wav
Normal file
BIN
client/public/static/voices/en-UK/doom-engaged.wav
Normal file
Binary file not shown.
Binary file not shown.
BIN
client/public/static/voices/en-UK/e-brakes-engaged.wav
Normal file
BIN
client/public/static/voices/en-UK/e-brakes-engaged.wav
Normal file
Binary file not shown.
BIN
client/public/static/voices/en-UK/e-stop-and.wav
Normal file
BIN
client/public/static/voices/en-UK/e-stop-and.wav
Normal file
Binary file not shown.
BIN
client/public/static/voices/en-UK/e-stop-automatically.wav
Normal file
BIN
client/public/static/voices/en-UK/e-stop-automatically.wav
Normal file
Binary file not shown.
Binary file not shown.
BIN
client/public/static/voices/en-UK/follow-mode-engaged.wav
Normal file
BIN
client/public/static/voices/en-UK/follow-mode-engaged.wav
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
client/public/static/voices/en-UK/full-self-driving-engaged.wav
Normal file
BIN
client/public/static/voices/en-UK/full-self-driving-engaged.wav
Normal file
Binary file not shown.
BIN
client/public/static/voices/en-UK/full-self-driving-refuses.wav
Normal file
BIN
client/public/static/voices/en-UK/full-self-driving-refuses.wav
Normal file
Binary file not shown.
BIN
client/public/static/voices/en-UK/hello-virtual-assistant.wav
Normal file
BIN
client/public/static/voices/en-UK/hello-virtual-assistant.wav
Normal file
Binary file not shown.
Binary file not shown.
BIN
client/public/static/voices/en-UK/infotainment-system-online.wav
Normal file
BIN
client/public/static/voices/en-UK/infotainment-system-online.wav
Normal file
Binary file not shown.
BIN
client/public/static/voices/en-UK/jankboard-initialized.wav
Normal file
BIN
client/public/static/voices/en-UK/jankboard-initialized.wav
Normal file
Binary file not shown.
BIN
client/public/static/voices/en-UK/littenos-is-online.wav
Normal file
BIN
client/public/static/voices/en-UK/littenos-is-online.wav
Normal file
Binary file not shown.
BIN
client/public/static/voices/en-UK/loading-pirated-nintendo.wav
Normal file
BIN
client/public/static/voices/en-UK/loading-pirated-nintendo.wav
Normal file
Binary file not shown.
BIN
client/public/static/voices/en-UK/max-vestrapren-do.wav
Normal file
BIN
client/public/static/voices/en-UK/max-vestrapren-do.wav
Normal file
Binary file not shown.
BIN
client/public/static/voices/en-UK/neutral-brakes-disengaged.wav
Normal file
BIN
client/public/static/voices/en-UK/neutral-brakes-disengaged.wav
Normal file
Binary file not shown.
BIN
client/public/static/voices/en-UK/overspeed.wav
Normal file
BIN
client/public/static/voices/en-UK/overspeed.wav
Normal file
Binary file not shown.
BIN
client/public/static/voices/en-UK/parked-brakes-engaged.wav
Normal file
BIN
client/public/static/voices/en-UK/parked-brakes-engaged.wav
Normal file
Binary file not shown.
Binary file not shown.
BIN
client/public/static/voices/en-UK/rapidly-approaching-speed.wav
Normal file
BIN
client/public/static/voices/en-UK/rapidly-approaching-speed.wav
Normal file
Binary file not shown.
BIN
client/public/static/voices/en-UK/retard.wav
Normal file
BIN
client/public/static/voices/en-UK/retard.wav
Normal file
Binary file not shown.
BIN
client/public/static/voices/en-UK/reverse.wav
Normal file
BIN
client/public/static/voices/en-UK/reverse.wav
Normal file
Binary file not shown.
BIN
client/public/static/voices/en-UK/self-destruct-countdown.wav
Normal file
BIN
client/public/static/voices/en-UK/self-destruct-countdown.wav
Normal file
Binary file not shown.
BIN
client/public/static/voices/en-UK/sentry-mode-engaged.wav
Normal file
BIN
client/public/static/voices/en-UK/sentry-mode-engaged.wav
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
client/public/static/voices/en-UK/shifted-into-automatic.wav
Normal file
BIN
client/public/static/voices/en-UK/shifted-into-automatic.wav
Normal file
Binary file not shown.
BIN
client/public/static/voices/en-UK/shifted-into-drive.wav
Normal file
BIN
client/public/static/voices/en-UK/shifted-into-drive.wav
Normal file
Binary file not shown.
BIN
client/public/static/voices/en-UK/shifted-into-low.wav
Normal file
BIN
client/public/static/voices/en-UK/shifted-into-low.wav
Normal file
Binary file not shown.
BIN
client/public/static/voices/en-UK/shut-down-sequence.wav
Normal file
BIN
client/public/static/voices/en-UK/shut-down-sequence.wav
Normal file
Binary file not shown.
Binary file not shown.
BIN
client/public/static/voices/en-UK/terrain-pull-up.wav
Normal file
BIN
client/public/static/voices/en-UK/terrain-pull-up.wav
Normal file
Binary file not shown.
BIN
client/public/static/voices/en-UK/user-error-detected.wav
Normal file
BIN
client/public/static/voices/en-UK/user-error-detected.wav
Normal file
Binary file not shown.
|
@ -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
|
||||
>
|
||||
|
|
|
@ -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 = () => {
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue