Sha256: 3bf677ee8ed3344029935b7b2f60324d3dd1d7b6869e3b9c6df2ac5ff9fc8e9e
Contents?: true
Size: 614 Bytes
Versions: 13
Compression:
Stored size: 614 Bytes
Contents
class InfoPlistStringCatalogManager { constructor(jsonData) { this.data = jsonData; this.localizations = {}; this.extractLocalizations(); } extractLocalizations() { for (const [key, details] of Object.entries(this.data.strings)) { for (const [lang, localization] of Object.entries(details.localizations)) { const formattedKey = `${key}.${lang}`; this.localizations[formattedKey] = localization.stringUnit.value; } } return this.localizations } } export default InfoPlistStringCatalogManager;
Version data entries
13 entries across 13 versions & 1 rubygems