Created
May 23, 2019 01:59
-
-
Save beardlessman/70d76ba1a1903620667dd81dce69841f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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