packages/slate-translations/index.js
async function _getLocalizedValues(key, localizedSchema) {
  const combinedTranslationsObject = {};

  await Promise.all(
    // eslint-disable-next-line array-callback-return
    Object.keys(localizedSchema).map((language) => {
      combinedTranslationsObject[language] = _.get(
        localizedSchema[language],
        key,
      );
    }),
  );

  return combinedTranslationsObject;
}
async function _getLocalizedValues(key, localizedSchema) {
  const combinedTranslationsObject = {};

  await Promise.all(
    // eslint-disable-next-line array-callback-return
    Object.keys(localizedSchema).map((language) => {
      combinedTranslationsObject[language] = _.get(
        localizedSchema[language],
        key,
      );
    }),
  );

  return combinedTranslationsObject;
}
async function _getLocalizedValues ( key , localizedSchema ) { const combinedTranslationsObject = { } ; await Promise . all ( // eslint-disable-next-line array-callback-return Object . keys ( localizedSchema ) . map ( ( language ) => { combinedTranslationsObject [ language ] = _ . get ( localizedSchema [ language ] , key , ) ; } ) , ) ; return combinedTranslationsObject ; }
Gets all the translations for a translation key

@param {*} key The key of the value to receive within the locales json object
@param {*} localizedSchema Object containing all the translations in locales
@returns Object with index for every language in the locales folder
Gets all the translations for a translation key