(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
pull/479/head
Jarosław Sadziński 1 year ago
parent 68c354de67
commit 8cb928e83d

@ -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';

Loading…
Cancel
Save