fix(client): make example code label translatable (#55174)

This commit is contained in:
yoko
2024-06-14 14:37:47 +09:00
committed by GitHub
parent 55fb957693
commit bb463dfefc
2 changed files with 2 additions and 1 deletions

View File

@@ -384,6 +384,7 @@
"submit-and-go": "Submit and go to my next challenge",
"congratulations": "Congratulations, your code passes. Submit your code to continue.",
"i-completed": "I've completed this challenge",
"example-code": "Example Code",
"test-output": "Your test output will go here",
"running-tests": "// running tests",
"tests-completed": "// tests completed",

View File

@@ -96,7 +96,7 @@ export function makePrismCollapsible(
const summary = document.createElement('summary');
summary.classList.add('code-details-summary');
summary.innerHTML = 'Example Code';
summary.innerHTML = i18next.t('learn.example-code');
details.appendChild(summary);
details.appendChild(preElem.cloneNode(true));