#!/usr/bin/env python3
"""Replace all 12,500 references with 12,793 across all lang files."""
import os
import glob

BASE = '/mnt/c/Gitrepo/fusionpointai/fusionpointai-laravel/lang'

for filepath in glob.glob(os.path.join(BASE, '**', '*.php'), recursive=True):
    with open(filepath, 'r', encoding='utf-8') as f:
        content = f.read()

    if '12,500' not in content:
        continue

    new_content = content.replace('12,500', '12,793')

    with open(filepath, 'w', encoding='utf-8') as f:
        f.write(new_content)

    print(f'Updated: {os.path.relpath(filepath, BASE)}')

print('Done.')
