Fix lack of dist_direction_onto_street

This commit is contained in:
Will Bradley 2024-01-13 12:41:40 -08:00
parent af833e1777
commit df1f036e5f
Signed by: will
GPG Key ID: 1159B930701263F3

View File

@ -766,7 +766,11 @@
}; };
var fmtKey = btoa(JSON.stringify(fmtObj)); var fmtKey = btoa(JSON.stringify(fmtObj));
window.fmtSoundData[fmtKey] = fmtObj; window.fmtSoundData[fmtKey] = fmtObj;
if (!data['dist_direction_onto_street']) {
data['dist_direction_onto_street'] = window.originalEnglishData['dist_direction_onto_street'];
}
var streetFmt = buildFmtStringInput('dist_direction_onto_street', data['dist_direction_onto_street'], "text-bg-dark", fmtKey); var streetFmt = buildFmtStringInput('dist_direction_onto_street', data['dist_direction_onto_street'], "text-bg-dark", fmtKey);
// handle empty translations
var streetDir; var streetDir;
// overwrite the direction string if present for street TTS // overwrite the direction string if present for street TTS