UNPKG

translation-io-sync

Version:

This Typescript implementation acts as a `translation.io` client

19 lines (18 loc) 542 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.PoLocator = void 0; const path_1 = require("path"); class PoLocator { constructor(configuration) { this.configuration = configuration; } findPathTo(locale) { const filename = `${locale}.${this.configuration.poExtention}`; const filepath = (0, path_1.join)(this.configuration.poDirectory, filename); return { locale: locale, path: filepath }; } } exports.PoLocator = PoLocator;