icoa-cli 2.16.1 → 2.16.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commands/exam.js +13 -1
- package/package.json +1 -1
package/dist/commands/exam.js
CHANGED
|
@@ -868,8 +868,20 @@ export function registerExamCommand(program) {
|
|
|
868
868
|
console.log();
|
|
869
869
|
printHowToPlay();
|
|
870
870
|
console.log();
|
|
871
|
+
// Show language info
|
|
872
|
+
const { getConfig: gc } = await import('../lib/config.js');
|
|
873
|
+
const currentLang = gc().language || 'en';
|
|
874
|
+
if (currentLang === 'en') {
|
|
875
|
+
console.log(chalk.gray(' Questions in English. To switch language:'));
|
|
876
|
+
console.log(chalk.gray(' lang es (Español) · lang zh (中文) · lang ko (한국어) · lang ja (日本語)'));
|
|
877
|
+
console.log(chalk.gray(' lang fr · lang ar · lang pt · lang to see all 15'));
|
|
878
|
+
}
|
|
879
|
+
else {
|
|
880
|
+
console.log(chalk.green(` Language: ${currentLang}`));
|
|
881
|
+
}
|
|
882
|
+
console.log();
|
|
871
883
|
const proceed = await confirm({
|
|
872
|
-
message: chalk.white('Start demo exam
|
|
884
|
+
message: chalk.white('Start demo exam?'),
|
|
873
885
|
default: true,
|
|
874
886
|
theme: { prefix: '', style: { message: (t) => t, defaultAnswer: (t) => chalk.green(t) } },
|
|
875
887
|
});
|