Feature/post media translations (#42)
* chore: updated todo with translation ideas * feat: first take at the implementation of translations * fix: small addition for the translation feature * feat: support language switching in the editor and preview * feat: better handling of long bodies by not running them through a json envelope * fix: unknown macros have better fallback * feat: api for python to get translations * fix: strip dumb prefix of content in translation * feat: extend meta diff for translations * feat: hook up translations to rebuild-from-disk * feat: generation of the website prefers project language, falling back to canonical language * fix: crashes during rendering * feat: translation validation report * fix: made the translation validation actually work * chore: reorganization of menu * fix: some topics cleanup * chore: updated doc * feat: translations for media * feat: more aligned in UI/UX * feat: edit translations possible * chore: added full multi-language todo * chore: updated todo for clarity * feat: implementation of full multi-linguality * fix: page creation creates pages * fix: flags on every page * fix: better prompt * feat: made MCP server aware of language content * feat: python tools for translations * fix: better fill-in-translations * fix: better prompt for translation. maybe. * fix: losing posts from search due to translation process * fix: translation validation handles in-db content and fill-in of missing translations fixed to flush * fix: faster scanning for infilling of missing translations * chore: updated agent instructions * feat: calendar and tag cloud respect current language now * fix: retries going up * fix: got metadata-diff and rebuild into sync * fix: extended meta-diff for timestamps * fix: made website validation look at translated content, too * fix: multi-lingual search * chore: refactor Editor.tsx into two separate editors * feat: do language detection when no explicit language given --------- Co-authored-by: hugo <hugoms@me.com>
This commit is contained in:
@@ -37,9 +37,11 @@ export type AppMenuAction =
|
||||
| 'generateSitemap'
|
||||
| 'regenerateCalendar'
|
||||
| 'validateSite'
|
||||
| 'validateTranslations'
|
||||
| 'uploadSite'
|
||||
| 'openDocumentation'
|
||||
| 'openApiDocumentation'
|
||||
| 'fillMissingTranslations'
|
||||
| 'findDuplicates'
|
||||
| 'about'
|
||||
| 'viewOnGitHub'
|
||||
@@ -126,18 +128,20 @@ export const APP_MENU_GROUPS: AppMenuGroupDefinition[] = [
|
||||
{ label: 'menu.item.publishSelected', action: 'publishSelected', accelerator: 'CmdOrCtrl+Shift+P' },
|
||||
{ label: '', action: 'blog-separator-1', separator: true },
|
||||
{ label: 'menu.item.previewPost', action: 'previewPost', id: APP_MENU_ITEM_IDS.previewPost, enabled: false, accelerator: 'CmdOrCtrl+Shift+V' },
|
||||
{ label: 'menu.item.editMenu', action: 'editMenu' },
|
||||
{ label: '', action: 'blog-separator-2', separator: true },
|
||||
{ label: 'menu.item.rebuildDatabase', action: 'rebuildDatabase' },
|
||||
{ label: 'menu.item.reindexText', action: 'reindexText' },
|
||||
{ label: 'menu.item.rebuildEmbeddingIndex', action: 'rebuildEmbeddingIndex' },
|
||||
{ label: '', action: 'blog-separator-3', separator: true },
|
||||
{ label: 'menu.item.metadataDiff', action: 'metadataDiff' },
|
||||
{ label: 'menu.item.editMenu', action: 'editMenu' },
|
||||
{ label: 'menu.item.generateSitemap', action: 'generateSitemap', accelerator: 'CmdOrCtrl+R' },
|
||||
{ label: 'menu.item.regenerateCalendar', action: 'regenerateCalendar' },
|
||||
{ label: 'menu.item.validateSite', action: 'validateSite', accelerator: 'CmdOrCtrl+Shift+L' },
|
||||
{ label: 'menu.item.validateTranslations', action: 'validateTranslations' },
|
||||
{ label: 'menu.item.fillMissingTranslations', action: 'fillMissingTranslations' },
|
||||
{ label: 'menu.item.findDuplicates', action: 'findDuplicates' },
|
||||
{ label: '', action: 'blog-separator-4', separator: true },
|
||||
{ label: 'menu.item.generateSitemap', action: 'generateSitemap', accelerator: 'CmdOrCtrl+R' },
|
||||
{ label: 'menu.item.validateSite', action: 'validateSite', accelerator: 'CmdOrCtrl+Shift+L' },
|
||||
{ label: 'menu.item.uploadSite', action: 'uploadSite', accelerator: 'CmdOrCtrl+Shift+U' },
|
||||
],
|
||||
},
|
||||
@@ -177,6 +181,8 @@ export const APP_MENU_ACTION_EVENT_MAP: Partial<Record<AppMenuAction, string>> =
|
||||
generateSitemap: 'menu:generateSitemap',
|
||||
regenerateCalendar: 'menu:regenerateCalendar',
|
||||
validateSite: 'menu:validateSite',
|
||||
validateTranslations: 'menu:validateTranslations',
|
||||
fillMissingTranslations: 'menu:fillMissingTranslations',
|
||||
findDuplicates: 'menu:findDuplicates',
|
||||
uploadSite: 'menu:uploadSite',
|
||||
openDocumentation: 'menu:openDocumentation',
|
||||
|
||||
Reference in New Issue
Block a user