mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
Feat: add title query params for exported csv and xlsx + download translations (#872)
Co-authored-by: Florent <florent.git@zeteo.me>
This commit is contained in:
@@ -85,7 +85,7 @@ export const GristTooltips: Record<Tooltip, TooltipContentFunc> = {
|
||||
t('Try out changes in a copy, then decide whether to replace the original with your edits.')
|
||||
),
|
||||
dom('div',
|
||||
cssLink({href: commonUrls.helpTryingOutChanges, target: '_blank'}, 'Learn more.'),
|
||||
cssLink({href: commonUrls.helpTryingOutChanges, target: '_blank'}, t('Learn more.')),
|
||||
),
|
||||
...args,
|
||||
),
|
||||
|
||||
@@ -303,7 +303,7 @@ export function downloadDocModal(doc: Document, pageModel: DocPageModel) {
|
||||
const selected = Observable.create<DownloadOption>(owner, 'full');
|
||||
|
||||
return [
|
||||
cssModalTitle(`Download document`),
|
||||
cssModalTitle(t(`Download document`)),
|
||||
cssRadioCheckboxOptions(
|
||||
radioCheckboxOption(selected, 'full', t("Download full document and history")),
|
||||
radioCheckboxOption(selected, 'nohistory', t("Remove document history (can significantly reduce file size)")),
|
||||
@@ -311,7 +311,7 @@ export function downloadDocModal(doc: Document, pageModel: DocPageModel) {
|
||||
),
|
||||
cssModalButtons(
|
||||
dom.domComputed(use =>
|
||||
bigPrimaryButtonLink(`Download`, hooks.maybeModifyLinkAttrs({
|
||||
bigPrimaryButtonLink(t(`Download`), hooks.maybeModifyLinkAttrs({
|
||||
href: pageModel.appModel.api.getDocAPI(doc.id).getDownloadUrl({
|
||||
template: use(selected) === "template",
|
||||
removeHistory: use(selected) === "nohistory" || use(selected) === "template",
|
||||
@@ -325,7 +325,7 @@ export function downloadDocModal(doc: Document, pageModel: DocPageModel) {
|
||||
testId('download-button-link'),
|
||||
),
|
||||
),
|
||||
bigBasicButton('Cancel', dom.on('click', () => {
|
||||
bigBasicButton(t('Cancel'), dom.on('click', () => {
|
||||
ctl.close();
|
||||
}))
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user