Skip to content

Conversation

@jamliaoo
Copy link
Collaborator

@jamliaoo jamliaoo commented Feb 4, 2025

Description

  • Add fallback filename for export when title is empty
  • Change setting-model wording
  • Fix prop types of toggle-button

@jamliaoo jamliaoo requested a review from WendellLiu February 4, 2025 14:44
src/lib/file.js Outdated
zip.file(entry, markdownBlob);
zip.generateAsync({ type: 'blob' }).then((newZipData) => {
saveAs(newZipData, `${config.title}.${ORIGINAL_FILE_EXTENSION}`);
saveAs(newZipData, `${config.title || '未命名文件'}.${ORIGINAL_FILE_EXTENSION}`);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we localize 未命名文件? If not, as I recall, it's not easy to access the i18n instance outside the React ecosystem, could we set an easy English default name instead, perhaps "new-file" or something similar?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the suggestion!
515b3ad

@jamliaoo jamliaoo merged commit 9d9c898 into main Feb 5, 2025
@jamliaoo jamliaoo deleted the fix/a8m-export branch February 5, 2025 14:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants