import { ScaledUnit } from '../scaled-unit/scaled-unit';
import { UnitScale } from './unit-scale';
import { metricPrefixes } from './utilities/metrix-prefixes';
import { ManuallyTranslatedScaledUnitFormat, UnitTranslation } from '../scaled-unit-format/manually-translated-scaled-unit-format';
const unitTranslations = new Map([
    ['en', new UnitTranslation('volt', 'volts', 'V')],
    ['fr', new UnitTranslation('volt', 'volts', 'V')],
    ['de', new UnitTranslation('Volt', 'Volt', 'V')],
    ['ja', new UnitTranslation('ボルト', 'ボルト', 'V')],
    ['zh', new UnitTranslation('伏特', '伏特', 'V')]
]);
/**
 * Voltage unit scale
 */
class VoltUnitScale extends UnitScale {
    constructor() {
        super(metricPrefixes.map(([scaleFactor, scaledPrefixText]) => new ScaledUnit(scaleFactor, ManuallyTranslatedScaledUnitFormat.createFactory({
            unitTranslations,
            scaledPrefixText
        }))));
    }
}
export const voltUnitScale = new VoltUnitScale();
//# sourceMappingURL=volt-unit-scale.js.map