(core) Removing translation from reported answeres on welcome screen

Summary:
Questions were saved as localized values. Now they are saved in English using
resource keys.

Test Plan: Manual

Reviewers: georgegevoian

Reviewed By: georgegevoian

Subscribers: georgegevoian

Differential Revision: https://phab.getgrist.com/D3845
This commit is contained in:
Jarosław Sadziński 2023-03-30 16:52:15 +02:00
parent 68c354de67
commit 8cb928e83d

View File

@ -27,9 +27,9 @@ export function showWelcomeQuestions(userPrefsObs: Observable<UserPrefs>) {
const showQuestions = getUserPrefObs(userPrefsObs, 'showNewUserQuestions');
async function onConfirm() {
const selected = choices.filter((c, i) => selection[i].get()).map(c => t(c.textKey));
const selected = choices.filter((c, i) => selection[i].get()).map(c => c.textKey);
const use_cases = ['L', ...selected]; // Format to populate a ChoiceList column
const use_other = selected.includes(t("Other")) ? otherText.get() : '';
const use_other = selected.includes("Other") ? otherText.get() : '';
const submitUrl = new URL(window.location.href);
submitUrl.pathname = '/welcome/info';