Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save beardlessman/70d76ba1a1903620667dd81dce69841f to your computer and use it in GitHub Desktop.
Save beardlessman/70d76ba1a1903620667dd81dce69841f to your computer and use it in GitHub Desktop.
const metadata = {
title: 'Scratchpad',
translations: [
{
locale: 'de',
title: 'Javascript-Umgebung'
}
],
url: '/en-US/dosc/Tools/Scratchpad'
};
const {
title: englishTitle,
translations: [{ title: localeTitle }]
} = metadata;
console.log(englishTitle); // Scratchpad
console.log(localeTitle); // Javascript-Umgebung
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment