Description: Install po files
Author: Sébastien Noel <sebastien@twolife.be>
Forwarded: TODO
Last-Update: 2026-01-17

--- a/meson.build
+++ b/meson.build
@@ -1,6 +1,6 @@
 project('gamemode-extension',
     version: '1.0',
-    meson_version: '>= 0.46.0',
+    meson_version: '>= 0.47.0',
     license: 'LGPL-2.1'
 )
 
@@ -35,6 +35,14 @@
     install_dir: extensiondir
 )
 
+# Install po files
+po_cmd = run_command('find', 'po/', '-type', 'f', '-name', '*.po', check: true)
+po_files = po_cmd.stdout().strip().split('\n')
+install_data(
+    po_files,
+    install_dir: join_paths(extensiondir, 'locale')
+)
+
 # Install schema
 install_data(
     schema_file,
