freeze(data) {
    frozen = true;

    for (const localeCode in locales) {
      const locale = locales[localeCode];

      if (data !== undefined && data[localeCode] !== undefined) {
        locale.setAll(data[localeCode]);
      }

      // Lock
      locale.setWriteable(false);
    }
  }
/**
   * Lock all locales after optionally setting data
   * @param {Object} [data]
   */
Lock all locales after optionally setting data
@param {Object} [data]
Lock all locales after optionally setting data @param { Object } [ data ]
freeze(data) {
    frozen = true;
    for (const localeCode in locales) {
      const locale = locales[localeCode];
      if (data !== undefined && data[localeCode] !== undefined) {
        locale.setAll(data[localeCode]);
      }
      locale.setWriteable(false);
    }
  }
freeze ( data ) { frozen = true ; for ( const localeCode in locales ) { const locale = locales [ localeCode ] ; if ( data !== undefined && data [ localeCode ] !== undefined ) { locale . setAll ( data [ localeCode ] ) ; } locale . setWriteable ( false ) ; } }
Lock all locales after optionally setting data
 @param {Object} [data]
Lock all locales after optionally setting data @param { Object } [ data ]
// Lock