icoa-cli 2.16.1 → 2.16.2

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,6 +868,29 @@ export function registerExamCommand(program) {
868
868
  console.log();
869
869
  printHowToPlay();
870
870
  console.log();
871
+ // Ask language preference first
872
+ const { getConfig: gc } = await import('../lib/config.js');
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;
893
+ }
871
894
  const proceed = await confirm({
872
895
  message: chalk.white('Start demo exam now?'),
873
896
  default: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "icoa-cli",
3
- "version": "2.16.1",
3
+ "version": "2.16.2",
4
4
  "description": "ICOA CLI — The world's first CLI-native CTF competition terminal",
5
5
  "type": "module",
6
6
  "bin": {