Skip to content

Commit

Permalink
only once
Browse files Browse the repository at this point in the history
  • Loading branch information
shubhattin committed Nov 14, 2024
1 parent ebe8344 commit 28434db
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,19 @@
});
$added_translations_indexes = $added_translations_indexes;
await query_client.setQueryData($trans_lang_data_query_key, new_data);
(globalThis as any).translated_once = true;
}
});
function translate_sarga_func() {
if ((globalThis as any).translated_once === true) {
modal_store.trigger({
type: 'alert',
title: 'Refresh Page to translate again',
body: 'Due to some issue the translation feature works only once after reload. Please refresh the page to use this.'
});
return;
}
modal_store.trigger({
type: 'confirm',
title: 'Are you sure to translate the sarga ?',
Expand Down

0 comments on commit 28434db

Please sign in to comment.