site/node_modules/speech-rule-engine/js/l10n/locales/locale_nn.js
2024-10-14 08:09:33 +02:00

29 lines
823 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.nn = void 0;
const locale_1 = require("../locale");
const locale_util_1 = require("../locale_util");
const numbers_nn_1 = require("../numbers/numbers_nn");
const tr = require("../transformers");
let locale = null;
function nn() {
if (!locale) {
locale = create();
}
return locale;
}
exports.nn = nn;
function create() {
const loc = (0, locale_1.createLocale)();
loc.NUMBERS = numbers_nn_1.default;
loc.ALPHABETS.combiner = tr.Combiners.prefixCombiner;
loc.ALPHABETS.digitTrans.default = numbers_nn_1.default.numberToWords;
loc.FUNCTIONS.radicalNestDepth = locale_util_1.nestingToString;
loc.SUBISO = {
default: '',
current: '',
all: ['', 'alt']
};
return loc;
}