code: function byString(localization, nestedKey) {
    // remove a leading dot and split by dot
    const keys = nestedKey.replace(/^\./, '').split('.');
  
    // loop through the keys to find the nested value
    for (let i = 0, length = keys.length; i < length; ++i) {
      const key = keys[i];
  
      if (!(key in localization)) { return; }
  
      localization = localization[key];
    }
  
    return localization;
  }
docs: Find the key if the key is a path expressed with dots
  
  e.g.
  Code: __("errors.connectionError")
  Lang: {"errors": {"connectionError": "There was an error connecting."}}
  New Code: "There was an error connecting."
  
  @param {Object} localization
  @param {String} nestedKey The original key
  
  @returns {*}