[web] qns/ui: fix UI questions metadata list generation script (#1440)

This commit is contained in:
Nitesh Seram 2025-05-07 12:55:52 +05:30 committed by GitHub
parent 96c51aa673
commit 506394d1af
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 5902 additions and 9 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -77,9 +77,6 @@ export function getQuestionOutPathUserInterfaceFrameworkSetup(
);
}
export function getQuestionsListOutFilenameUserInterface(_locale: string) {
return path.join(
QUESTIONS_OUT_DIR_USER_INTERFACE,
'UserInterfaceQuestionsList.json',
);
export function getQuestionsListOutFilenameUserInterface(locale: string) {
return path.join(QUESTIONS_OUT_DIR_USER_INTERFACE, `list.${locale}.json`);
}

View File

@ -95,10 +95,12 @@ export async function generateAllMetadata() {
locale,
),
),
generateQuestionsMetadata(
readQuestionListMetadataUserInterface,
getQuestionsListOutFilenameUserInterface(sourceLocale),
sourceLocale,
...locales.map((locale) =>
generateQuestionsMetadata(
readQuestionListMetadataUserInterface,
getQuestionsListOutFilenameUserInterface(locale),
locale,
),
),
...locales.map((locale) =>
codingQuestionsMetadata(