Changeset 3b4095f in Klonkt for src/services/i18n.js


Ignore:
Timestamp:
07/01/2026 10:28:08 PM (2 months ago)
Author:
roboburr <roboburr@…>
Branches:
main
Children:
5e52448
Parents:
7f265ce
Message:

feat(seo): og:image light/dark override setting

The auto-generated share card followed the site's default theme (1.2.0); Admin →
SEO now has an explicit override: Auto (follow site theme) / Light / Dark.

  • src/config/database.js — sites.og_theme column (NULL = auto).
  • src/services/OgImageService.js — og_theme wins over theme_override when set.
  • src/routes/og.js — select og_theme for the card route.
  • src/routes/admin-seo.js — save og_theme (validated to light/dark, else auto).
  • src/views/pages/admin-seo.ejs — select under the share-image field.
  • src/services/i18n.js — aseo.og_theme* (nl/en/de).
  • CHANGELOG(.nl/.de).md — under Added.

Closes prutfolio-src-krm.

Co-Authored-By: Claude <noreply@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/services/i18n.js

    r7f265ce r3b4095f  
    285285    'aseo.og_image': 'Standaard deel-afbeelding (URL)',
    286286    'aseo.og_image_hint': 'og:image / Twitter-card; ~1200×630px',
     287    'aseo.og_theme': 'Deel-kaart licht of donker',
     288    'aseo.og_theme_hint': 'de automatisch gemaakte deel-afbeelding',
     289    'aseo.og_theme_auto': 'Automatisch (volgt site-thema)',
     290    'aseo.og_theme_light': 'Licht',
     291    'aseo.og_theme_dark': 'Donker',
    287292    'aseo.og_locale': 'Taal-locale',
    288293    'aseo.og_locale_hint_pre': 'og:locale, bv.',
     
    12081213    'aseo.og_image': 'Default share image (URL)',
    12091214    'aseo.og_image_hint': 'og:image / Twitter card; ~1200×630px',
     1215    'aseo.og_theme': 'Share card light or dark',
     1216    'aseo.og_theme_hint': 'the auto-generated share image',
     1217    'aseo.og_theme_auto': 'Auto (follows site theme)',
     1218    'aseo.og_theme_light': 'Light',
     1219    'aseo.og_theme_dark': 'Dark',
    12101220    'aseo.og_locale': 'Language locale',
    12111221    'aseo.og_locale_hint_pre': 'og:locale, e.g.',
     
    21302140    'aseo.og_image': 'Standard-Teilbild (URL)',
    21312141    'aseo.og_image_hint': 'og:image / Twitter-Card; ~1200×630px',
     2142    'aseo.og_theme': 'Teilen-Karte hell oder dunkel',
     2143    'aseo.og_theme_hint': 'das automatisch erzeugte Teilbild',
     2144    'aseo.og_theme_auto': 'Automatisch (folgt dem Site-Thema)',
     2145    'aseo.og_theme_light': 'Hell',
     2146    'aseo.og_theme_dark': 'Dunkel',
    21322147    'aseo.og_locale': 'Sprach-Locale',
    21332148    'aseo.og_locale_hint_pre': 'og:locale, z. B.',
Note: See TracChangeset for help on using the changeset viewer.