In short
Detecting changes to the source content means knowing automatically that a page in the original language has changed in substance, and exactly what changed, so that its translations get updated. The principle is simple: you calculate a fingerprint (a hash) of the source page's translatable fields, and each translation keeps the fingerprint of the version it was made from. When the two differ, the translation is behind. Once in place, every significant change triggers a dated signal, and cosmetic edits do not.
Why it matters
CMS modification dates change with every save: fixing a comma, adding a category, updating a plugin. They produce many false positives, and the team ends up ignoring them. Conversely, a price or a specification changed in the text goes unnoticed if nobody thinks to tell the translators.
A fingerprint calculated only on the translatable fields, after normalization (tags removed, whitespace collapsed), only changes when the text changes. Combined with a diff, it also tells you what needs to be retranslated: a sentence, not the whole page. This is what makes the check for missing or outdated translations (opens in a new tab) reliable, and it is the trigger for notifications to the people responsible (opens in a new tab).
What it improves
- Translation freshness The delay is known as soon as the change is made, not during a quarterly audit.
- Translation cost Only the changed passage is retranslated.
- Consistency between languages Identical prices, specifications and terms everywhere, which limits contradictions picked up by generative engines. Indirect effect, not measurable in isolation.
- Less noise Saves with no change to the text trigger nothing.
- Rankings No direct effect.
How to check
On a staging environment:
- Change a sentence in a source page and save.
- Check that the page is flagged as changed, with the date and, depending on the method, the passage that changed.
- Save the same page without changing anything, then add only spaces: no signal should appear.
- Update the translation: the signal must disappear for that language and remain for the others.
If step 3 triggers a signal, normalization is insufficient; if step 1 does not trigger one, the changed field is not part of the fingerprint.
How to implement
Before you start
List the fields that go into the fingerprint, by content type:
| Field | In the fingerprint | Reason |
|---|---|---|
| Title, content, excerpt | Yes | Translated text |
| SEO title and meta description | Yes | Translated, visible in the results |
| Image alt text | Yes | Translated |
| Slug | No, tracked separately | Changing it requires a redirect, not a retranslation |
| Price, stock, SKUs | No | To be synchronized through data, not translation. See synchronize facts and specifications (opens in a new tab) |
| Modification date, author | No | Change without the text changing |
Normalize before calculating: remove HTML tags, collapse runs of whitespace, ignore case if you wish. Use SHA-256 or MD5: the point is to detect a change, not to secure anything.
On the translation side, store the source's fingerprint at the time the translation was approved. Comparing two fingerprints is more reliable than comparing two dates.
WordPress
Versions WordPress 6.4 and later, Polylang current as of November 2026.
With WPML
WPML detects changes to the original itself and lists the affected translations among those that need updating, visible in WPML > Translations with the status filter. If you use automatic translation, check the behavior chosen for updates in WPML > Settings. No code is needed.
With Polylang
Polylang does not track source versions. This must-use plugin, to be placed in wp-content/mu-plugins/source-tracker.php, records a fingerprint on each piece of content in the default language when its text changes, and on each translation the source's fingerprint at the time the translation is saved:
<?php
/**
* Plugin Name: Source tracker
* Description: Records source fingerprints so that outdated translations can be detected.
*/
function source_tracker_fingerprint(WP_Post $post): string
{
$text = implode("\n", [
$post->post_title,
$post->post_excerpt,
wp_strip_all_tags($post->post_content),
]);
return md5(trim(preg_replace('/\s+/u', ' ', $text)));
}
add_action('post_updated', function (int $postId, WP_Post $after, WP_Post $before): void {
if (wp_is_post_revision($postId)) {
return;
}
if (! function_exists('pll_get_post_language')) {
return;
}
if (pll_get_post_language($postId) !== pll_default_language()) {
return;
}
$fingerprint = source_tracker_fingerprint($after);
if ($fingerprint === get_post_meta($postId, '_source_fingerprint', true)) {
return;
}
update_post_meta($postId, '_source_fingerprint', $fingerprint);
update_post_meta($postId, '_source_changed_at', current_time('mysql', true));
do_action('source_tracker_changed', $postId, $before, $after);
}, 10, 3);
add_action('save_post', function (int $postId): void {
if (wp_is_post_revision($postId)) {
return;
}
if (! function_exists('pll_get_post')) {
return;
}
$sourceId = pll_get_post($postId, pll_default_language());
if (! $sourceId) {
return;
}
if ($sourceId === $postId) {
return;
}
update_post_meta($postId, '_translated_from', get_post_meta($sourceId, '_source_fingerprint', true));
}, 20);
A translation is behind when its _translated_from meta differs from its source's _source_fingerprint meta. The source_tracker_changed action serves as a hook for notifications. Two limits: saving a translation counts as approval, even for a mere typo fix; existing content has no fingerprint until it has been modified once. To include SEO fields (Yoast SEO, Rank Math), add their meta values to the fingerprint text.
With TranslatePress or Weglot
These solutions translate string by string: a changed sentence in the source becomes a new string, untranslated or machine-translated depending on your settings. Detection is therefore native; the check covers the review of new strings. See review AI translations (opens in a new tab).
Shopify
Versions Shopify, all plans, GraphQL Admin API, November 2026.
Shopify calculates the status itself: each translation carries an outdated field that switches to true when the original content has changed since its last update. Each translatable field also exposes a digest, the fingerprint of its source value, which Shopify uses to tie a translation to a version of the source. To be notified continuously, schedule the following query every day (custom app with the read_translations access scope):
query TraductionsObsoletes {
translatableResources(first: 100, resourceType: PRODUCT) {
edges {
node {
resourceId
translations(locale: "de", outdated: true) {
key
updatedAt
}
}
}
}
}
To react within the minute, subscribe your app to the products/update webhook and run the query again for the modified product only. The webhook also fires for stock or price changes: the outdated field is what counts.
Drupal
Versions Drupal 10 and 11, Content Translation module.
Drupal offers the "Flag other translations as outdated" checkbox in the Translation section of the edit form. It relies on the editor: make it mandatory in your publishing procedure for any substantive change. Full automation requires a custom module that compares the translatable fields before and after saving (hook_entity_update()) and marks the other translations as outdated through Content Translation's metadata; test it on your version, as the API for accessing the original entity changed in Drupal 11.
Laravel
Versions Laravel 11 to 13, spatie/laravel-translatable 6.
Add three columns to the translated model:
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
public function up(): void
{
Schema::table('pages', function (Blueprint $table): void {
$table->string('source_fingerprint', 64)->nullable();
$table->timestamp('source_changed_at')->nullable();
$table->json('translated_from')->nullable();
});
}
public function down(): void
{
Schema::table('pages', function (Blueprint $table): void {
$table->dropColumn(['source_fingerprint', 'source_changed_at', 'translated_from']);
});
}
};
In the model, calculate the source language's fingerprint and expose the languages that are behind:
<?php
namespace App\Models;
use App\Observers\PageObserver;
use Illuminate\Database\Eloquent\Attributes\ObservedBy;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Str;
use Spatie\Translatable\HasTranslations;
#[ObservedBy(PageObserver::class)]
class Page extends Model
{
use HasTranslations;
public const SOURCE_LOCALE = 'fr';
/** @var array<int, string> */
public array $translatable = ['title', 'meta_description', 'body'];
protected function casts(): array
{
return [
'source_changed_at' => 'datetime',
'translated_from' => 'array',
];
}
public function sourceFingerprint(): string
{
$text = collect($this->getTranslatableAttributes())
->map(fn (string $attribute): string => Str::squish(strip_tags((string) $this->getTranslation($attribute, self::SOURCE_LOCALE, false))))
->implode("\n");
return hash('sha256', $text);
}
public function markTranslated(string $locale): void
{
$this->translated_from = [...($this->translated_from ?? []), $locale => $this->source_fingerprint];
$this->save();
}
/**
* @param array<int, string> $locales
* @return array<int, string>
*/
public function outdatedLocales(array $locales): array
{
return array_values(array_filter(
$locales,
fn (string $locale): bool => ($this->translated_from[$locale] ?? null) !== $this->source_fingerprint,
));
}
}
The observer updates the fingerprint and dispatches an event only when the source text has changed:
<?php
namespace App\Observers;
use App\Events\SourceContentChanged;
use App\Models\Page;
class PageObserver
{
public function saving(Page $page): void
{
$fingerprint = $page->sourceFingerprint();
if ($fingerprint === $page->source_fingerprint) {
return;
}
$page->source_fingerprint = $fingerprint;
$page->source_changed_at = now();
}
public function saved(Page $page): void
{
if (! $page->wasChanged('source_fingerprint')) {
return;
}
SourceContentChanged::dispatch($page);
}
}
Call $page->markTranslated('de') when the translator approves the German version (an admin button, an import from the translation tool). $page->outdatedLocales(['de', 'en']) returns the languages to update. Create the event with php artisan make:event SourceContentChanged, with a public Page $page property; the notification listener is described in the next task.
Next.js
Versions Next.js 15 and 16, Markdown or MDX content and messages/*.json files versioned in Git; same method for Astro, Nuxt or any static site.
When content lives in a Git repository, the history is already a change log. This GitHub Actions workflow lists, on each push to the main branch, the modified source files and the modified or added interface keys. Create .github/workflows/modifications-source.yml:
name: Source changes
on:
push:
branches: [main]
paths:
- 'content/fr/**'
- 'messages/fr.json'
jobs:
detect:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 0
- name: List changes in the source language
env:
BEFORE: ${{ github.event.before }}
run: |
git show "${BEFORE}:messages/fr.json" > before.json 2>/dev/null || echo '{}' > before.json
{
echo "## Modified source content"
git diff --stat "$BEFORE" "$GITHUB_SHA" -- content/fr
echo ""
echo "## Modified or added interface keys"
jq -r --slurpfile old before.json 'paths(scalars) as $p | select(($old[0] | getpath($p)) != getpath($p)) | $p | map(tostring) | join(".")' messages/fr.json | sed 's/^/- /'
} >> "$GITHUB_STEP_SUMMARY"
The summary appears on the run's page. git diff "$BEFORE" "$GITHUB_SHA" -- content/fr/guides/ziehtemperatur.mdx gives the line-by-line detail. To know which translation is behind, add to each translation's front matter the reference of the translated source commit (sourceCommit: 3f2a1c9), then compare it with the source file's last commit.
A translation management tool connected to the repository (Crowdin, Lokalise, Phrase) does this work string by string: it imports the source files at each change, flags new or changed strings and offers to retranslate them. Check in its documentation what happens to existing translations when a source string changes.
Common mistakes
- Using the modification date as the only signal: every save becomes an alert.
- Calculating the fingerprint on raw HTML: a change of CSS class or block attribute triggers a needless retranslation.
- Forgetting SEO fields stored outside the main content (plugin meta, custom fields).
- Including price and stock in the fingerprint: translations look outdated at every stock change.
- Not initializing existing content: without a starting fingerprint, nothing gets compared.
- Fetching a truncated Git history in CI: the diff cannot find the previous commit.
Frequently asked questions
How do you know that a source page has changed since it was translated?
Compare fingerprints rather than dates. Calculate a hash of the source page's translatable fields after removing tags and extra whitespace, and store on each translation the source's hash at the time the translation was approved. When the two differ, the translation is behind. Shopify and WPML do this tracking natively; elsewhere, a few lines of code are enough.
Why not rely on the CMS modification date?
A CMS modification date changes with every save, including for a punctuation fix, a category change or an automatic plugin update. It therefore generates many false positives and does not tell you what changed. A fingerprint calculated only on the translatable text changes only if that text changes, and a diff shows the passage to retranslate.
Do translation management tools detect changes to the source?
Yes, translation management tools such as Crowdin, Lokalise or Phrase import the source files at each change when they are connected to the repository, and flag new or modified strings. Tracking is done string by string, which limits retranslation to what is strictly necessary. Check in their documentation how they handle existing translations of a modified source string.
Should a page be retranslated every time the source changes?
No, only the changed part needs to be retranslated, and only if the change affects the meaning. A fingerprint calculated on normalized text already ignores formatting changes. For the rest, the diff shows the translator the passage concerned. Factual data such as prices or stock levels is synchronized through the site's data, not through translation.
Resources
- WordPress: post_updated hookdeveloper.wordpress.org
- Polylang: Function referencepolylang.pro
- Shopify: Admin API TranslatableResource objectshopify.dev
- Drupal: Content Translation overviewdrupal.org
- Laravel: Eloquent events and observerslaravel.com
- GitHub Docs: Adding a job summarydocs.github.com
- Crowdin: QA checkssupport.crowdin.com
Updated on
Topic checklist (PDF)