Index: test/activitypub-as2.test.js
===================================================================
--- test/activitypub-as2.test.js	(revision d18c60e0878b426798d32187e85100a2262f1430)
+++ test/activitypub-as2.test.js	(revision 0688b5fcf8935a7e243f429c90946fd67027fb3c)
@@ -27,4 +27,5 @@
   'published', 'updated', 'attributedTo', 'inReplyTo', 'replies',
   'attachment', 'tag', 'icon', 'image', 'duration',
+  'contentMap', 'nameMap', 'summaryMap', // AS2 @language-map counterparts of content/name/summary
   'totalItems', 'orderedItems', 'items', 'first', 'last', 'partOf', 'next', 'prev',
   'preferredUsername', 'inbox', 'outbox', 'followers', 'following', 'endpoints', 'sharedInbox',
@@ -47,4 +48,5 @@
       keys.add(k);
       if (k === 'type' && typeof v === 'string') keys.add(v);
+      if (/Map$/.test(k)) continue; // a @language map (contentMap/…): its keys are BCP-47 tags, not vocab terms
       collect(v, keys);
     }
@@ -70,5 +72,5 @@
   id: 'p1', slug: 'hello', title: 'Hi', content: '<p>hello #music</p>',
   nsfw: 1, content_warning: 'cw', tags: JSON.stringify(['mood']),
-  cover_image_url: '/media/c.webp',
+  cover_image_url: '/media/c.webp', cover_alt: 'A cover', language: 'en',
   published_at: '2026-01-01T00:00:00Z', created_at: '2026-01-01T00:00:00Z',
 };
Index: test/post-language.test.js
===================================================================
--- test/post-language.test.js	(revision 0688b5fcf8935a7e243f429c90946fd67027fb3c)
+++ test/post-language.test.js	(revision 0688b5fcf8935a7e243f429c90946fd67027fb3c)
@@ -0,0 +1,37 @@
+// Content language — a post's language federates as an AS2 contentMap (Mastodon's language
+// filter + translate button read the map's key). In-memory SQLite. Run: npm test
+import { test } from 'node:test';
+import assert from 'node:assert/strict';
+
+process.env.DATABASE_PATH = ':memory:';
+process.env.PUBLIC_BASE_URL = 'https://test.example';
+
+const dbMod = await import('../src/config/database.js');
+const db = dbMod.default;
+dbMod.initializeDatabase();
+const AP = (await import('../src/services/ActivityPubService.js')).default;
+
+const BASE = 'https://test.example';
+db.prepare('INSERT INTO users (id, username, email, password_hash, role) VALUES (?,?,?,?,?)').run('u1', 'u1', 'u1@test', 'x', 'god');
+db.prepare('INSERT INTO sites (id, slug, title, owner_id, is_primary) VALUES (?,?,?,?,?)').run('s1', 'demo', 'Demo', 'u1', 1);
+const site = db.prepare('SELECT * FROM sites WHERE id = ?').get('s1');
+site.primary_slug = 'demo';
+
+test('a post language federates as a contentMap keyed by the language', () => {
+  const post = { id: 'l1', slug: 'x', title: '', content: '<p>hallo</p>', tags: '[]', language: 'nl', created_at: '2026-01-01T00:00:00Z' };
+  const note = AP.buildNote(BASE, site, post);
+  assert.ok(note.contentMap, 'contentMap present');
+  assert.deepEqual(Object.keys(note.contentMap), ['nl']);
+  assert.equal(note.contentMap.nl, note.content, 'contentMap value mirrors content');
+  assert.ok(note.content, 'plain content still emitted alongside');
+});
+
+test('no language → no contentMap', () => {
+  const post = { id: 'l2', slug: 'y', title: '', content: '<p>hi</p>', tags: '[]', created_at: '2026-01-01T00:00:00Z' };
+  assert.ok(!('contentMap' in AP.buildNote(BASE, site, post)));
+});
+
+test('an invalid language code is ignored', () => {
+  const post = { id: 'l3', slug: 'z', title: '', content: '<p>hi</p>', tags: '[]', language: 'not-a-lang!!', created_at: '2026-01-01T00:00:00Z' };
+  assert.ok(!('contentMap' in AP.buildNote(BASE, site, post)));
+});
