fof / discussion-language
Specify the language a discussion is written in & sort by language
Package info
github.com/FriendsOfFlarum/discussion-language
Type:flarum-extension
pkg:composer/fof/discussion-language
Fund package maintenance!
Requires
- php: ^8.1
- flarum/core: ^1.8.3
- flarum/tags: *
- ianm/iso-639: ^1.0
- league/csv: ^9.7
- rinvex/countries: ^6.1.2 || ^7.0.1 || ^8.1.0
Requires (Dev)
- flarum/phpstan: *
- flarum/sticky: *
- flarum/testing: ^1.0.0
- fof/byobu: *
- fof/follow-tags: *
- 1.x-dev
- 1.3.9
- 1.3.8
- 1.3.7
- 1.3.6
- 1.3.5
- 1.3.4
- 1.3.3
- 1.3.2
- 1.3.1
- 1.3.0
- 1.2.11
- 1.2.10
- 1.2.9
- 1.2.8
- 1.2.7
- 1.2.6
- 1.2.5
- 1.2.4
- 1.2.3
- 1.2.2
- 1.2.1
- 1.2.0
- 1.2.0-beta.2
- 1.2.0-beta.1
- 1.1.4
- 1.1.3
- 1.1.2
- 1.1.1
- 1.1.0
- 1.0.1
- 1.0.0
- 0.4.0
- 0.3.3
- 0.3.2
- 0.3.1
- 0.3.0
- 0.2.0
- 0.1.2
- 0.1.1
- 0.1.0
- 0.1.0-beta.4
- 0.1.0-beta.3
- 0.1.0-beta.2
- 0.1.0-beta
- dev-dependabot/npm_and_yarn/js/picomatch-2.3.2
- dev-ds/webpack-chunks
This package is auto-updated.
Last update: 2026-03-25 23:54:45 UTC
README
A Flarum extension. Tag discussions with the language they are written in, filter the discussion list by language, and optionally auto-detect a visitor's preferred language to show relevant content by default.
Features
- Language tagging — Assign a language (with optional country flag) to each discussion. Authors are prompted to choose a language when composing, moderators can change it at any time.
- Discussion list filtering — A language dropdown appears on the index page. Discussions are filtered by language automatically based on the visitor's browser locale, cookie, or user preference — or they can manually pick "Any Language".
- Search gambit — Filter search results by language using
language:<code>in the search bar. - Composer pre-selection — Optionally pre-fill the language picker in the composer with the user's current Flarum locale.
- Country flags — Display emoji flags alongside language names (backed by twemoji). Uses ISO 639-2 language codes and country data.
- Native language names — Optionally display language names in their own script (e.g. "Deutsch" instead of "German").
- Tags page integration — Optionally show only the most recent discussion in the user's locale on the tags page instead of the overall most recent discussion.
- fof/follow-tags integration — When fof/follow-tags is enabled, users can choose which discussion language they want to receive tag subscription notifications for.
Installation
composer require fof/discussion-language:"*"
Updating
composer update fof/discussion-language php flarum assets:publish php flarum migrate
Configuration
All settings are available under the extension's admin page:
| Setting | Description | Default |
|---|---|---|
| Use native language names | Show language names in their own script | Off |
| Show country flags | Display emoji flags next to language names | On |
| Pre-select current locale in composer | Automatically pick the user's Flarum locale when starting a discussion | Off |
| Use detected language for default filter | Redirect visitors to their detected language on page load | Off |
| Show "Any Language" option | Add an option to the dropdown to view all discussions regardless of language | On |
| Only show locale discussions on tags page | Replace the tag's last discussion link with the most recent one in the user's locale | Off |
Languages and their associated countries (for flag display) are managed from the Languages section of the extension's admin page.
Permissions
- Allow language editing — Controls which user groups can change the language of their own discussions, and for how long after posting (immediately, within 10 minutes, or until someone else replies).
- Allow moderate language editing — Controls which groups can change the language on any discussion at any time.
Links
An extension by FriendsOfFlarum, commissioned by mailcow.