icoa-cli 2.16.2 → 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.
@@ -868,31 +868,20 @@ export function registerExamCommand(program) {
868
868
  console.log();
869
869
  printHowToPlay();
870
870
  console.log();
871
- // Ask language preference first
871
+ // Show language info
872
872
  const { getConfig: gc } = await import('../lib/config.js');
873
873
  const currentLang = gc().language || 'en';
874
- const langConfirm = await confirm({
875
- message: chalk.white(`Questions will be in English. OK?`),
876
- default: true,
877
- theme: { prefix: '', style: { message: (t) => t, defaultAnswer: (t) => chalk.green(t) } },
878
- });
879
- if (!langConfirm) {
880
- console.log();
881
- console.log(chalk.white(' Switch language first, then type ') + chalk.bold.cyan('demo') + chalk.white(' again:'));
882
- console.log();
883
- console.log(chalk.yellow(' lang es') + chalk.gray(' Español'));
884
- console.log(chalk.yellow(' lang zh') + chalk.gray(' 中文'));
885
- console.log(chalk.yellow(' lang ko') + chalk.gray(' 한국어'));
886
- console.log(chalk.yellow(' lang ja') + chalk.gray(' 日本語'));
887
- console.log(chalk.yellow(' lang fr') + chalk.gray(' Français'));
888
- console.log(chalk.yellow(' lang ar') + chalk.gray(' العربية'));
889
- console.log(chalk.yellow(' lang pt') + chalk.gray(' Português'));
890
- console.log(chalk.yellow(' lang') + chalk.gray(' View all 15 languages'));
891
- console.log();
892
- return;
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'));
893
878
  }
879
+ else {
880
+ console.log(chalk.green(` Language: ${currentLang}`));
881
+ }
882
+ console.log();
894
883
  const proceed = await confirm({
895
- message: chalk.white('Start demo exam now?'),
884
+ message: chalk.white('Start demo exam?'),
896
885
  default: true,
897
886
  theme: { prefix: '', style: { message: (t) => t, defaultAnswer: (t) => chalk.green(t) } },
898
887
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "icoa-cli",
3
- "version": "2.16.2",
3
+ "version": "2.16.3",
4
4
  "description": "ICOA CLI — The world's first CLI-native CTF competition terminal",
5
5
  "type": "module",
6
6
  "bin": {