stuff
This commit is contained in:
parent
bc92231240
commit
b8225c639e
11904 changed files with 1472749 additions and 133 deletions
24
node_modules/speech-rule-engine/mjs/l10n/locales/locale_da.js
generated
vendored
Normal file
24
node_modules/speech-rule-engine/mjs/l10n/locales/locale_da.js
generated
vendored
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
import { createLocale } from '../locale.js';
|
||||
import { nestingToString } from '../locale_util.js';
|
||||
import { NUMBERS } from '../numbers/numbers_da.js';
|
||||
import * as tr from '../transformers.js';
|
||||
let locale = null;
|
||||
export function da() {
|
||||
if (!locale) {
|
||||
locale = create();
|
||||
}
|
||||
return locale;
|
||||
}
|
||||
function create() {
|
||||
const loc = createLocale();
|
||||
loc.NUMBERS = NUMBERS;
|
||||
loc.FUNCTIONS.radicalNestDepth = nestingToString;
|
||||
loc.FUNCTIONS.fontRegexp = (font) => {
|
||||
return font === loc.ALPHABETS.capPrefix['default']
|
||||
? RegExp('^' + font + ' ')
|
||||
: RegExp(' ' + font + '$');
|
||||
};
|
||||
loc.ALPHABETS.combiner = tr.Combiners.postfixCombiner;
|
||||
loc.ALPHABETS.digitTrans.default = NUMBERS.numberToWords;
|
||||
return loc;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue