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

Version Path
solara-0.7.4 solara/lib/core/dashboard/brand/InfoPlistStringCatalogManager.js
solara-0.7.3 solara/lib/core/dashboard/brand/InfoPlistStringCatalogManager.js
solara-0.7.2 solara/lib/core/dashboard/brand/InfoPlistStringCatalogManager.js
solara-0.7.1 solara/lib/core/dashboard/brand/InfoPlistStringCatalogManager.js
solara-0.7.0 solara/lib/core/dashboard/brand/InfoPlistStringCatalogManager.js
solara-0.6.0 solara/lib/core/dashboard/brand/InfoPlistStringCatalogManager.js
solara-0.5.0 solara/lib/core/dashboard/brand/InfoPlistStringCatalogManager.js
solara-0.4.0 solara/lib/core/dashboard/brand/InfoPlistStringCatalogManager.js
solara-0.3.0 solara/lib/core/dashboard/brand/InfoPlistStringCatalogManager.js
solara-0.2.4 solara/lib/core/dashboard/brand/InfoPlistStringCatalogManager.js
solara-0.2.3 solara/lib/core/dashboard/brand/InfoPlistStringCatalogManager.js
solara-0.2.2 solara/lib/core/dashboard/brand/InfoPlistStringCatalogManager.js
solara-0.2.1 solara/lib/core/dashboard/brand/InfoPlistStringCatalogManager.js