appium-xcuitest-driver
Version:
Appium driver for iOS using XCUITest for backend
25 lines • 1 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getStrings = getStrings;
const utils_1 = require("../utils");
/**
* Return the language-specific strings for an app
*
* @param language - The language abbreviation to fetch app strings mapping for.
* If no language is provided then strings for the 'en language would be returned
* @param stringFile - Relative path to the corresponding .strings
* file starting from the corresponding .lproj folder, e.g., `base/main.strings`. If omitted,
* then Appium will make its best guess where the file is.
*
* @returns A record of localized keys to localized text
*/
async function getStrings(language, stringFile = null) {
this.log.debug(`Gettings strings for language '${language}' and string file '${stringFile}'`);
return await utils_1.parseLocalizableStrings.bind(this)({
...this.opts,
language,
stringFile,
strictMode: true,
});
}
//# sourceMappingURL=app-strings.js.map