i18n: Specify sorting for extraction (#117171)

* Specify sort

* update sorting for plugins

* merge

---------

Co-authored-by: joshhunt <josh.hunt@grafana.com>
This commit is contained in:
Andrej Ocenas 2026-02-10 11:21:23 +01:00 committed by GitHub
parent b3fd56dc4e
commit 80c73c2c81
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 1252 additions and 1234 deletions

View file

@ -9,5 +9,7 @@ export default defineConfig({
defaultNS: pluginJson.id,
functions: ['t', '*.t'],
transComponents: ['Trans'],
// eslint-disable-next-line no-restricted-syntax
sort: (a, b) => a.key.localeCompare(b.key, 'en-US'),
},
});

View file

@ -9,5 +9,7 @@ export default defineConfig({
defaultNS: pluginJson.id,
functions: ['t', '*.t'],
transComponents: ['Trans'],
// eslint-disable-next-line no-restricted-syntax
sort: (a, b) => a.key.localeCompare(b.key, 'en-US'),
},
});

View file

@ -9,5 +9,7 @@ export default defineConfig({
defaultNS: pluginJson.id,
functions: ['t', '*.t'],
transComponents: ['Trans'],
// eslint-disable-next-line no-restricted-syntax
sort: (a, b) => a.key.localeCompare(b.key, 'en-US'),
},
});

View file

@ -1,7 +1,7 @@
import { defineConfig } from 'i18next-cli';
export default defineConfig({
locales: ['en-US'], // Only en-US is updated - Crowdin will PR with other languages
locales: ['en-US'], // Only en-US is updated - Crowdin will PR with other languages
extract: {
ignore: [
'public/lib/monaco/**/*',
@ -14,5 +14,7 @@ export default defineConfig({
defaultNS: 'grafana',
functions: ['t', '*.t'],
transComponents: ['Trans'],
// eslint-disable-next-line no-restricted-syntax
sort: (a, b) => a.key.localeCompare(b.key, 'en-US'),
},
});

View file

@ -8,5 +8,7 @@ export default defineConfig({
defaultNS: 'grafana-alerting',
functions: ['t', '*.t'],
transComponents: ['Trans'],
// eslint-disable-next-line no-restricted-syntax
sort: (a, b) => a.key.localeCompare(b.key, 'en-US'),
},
});

View file

@ -8,5 +8,7 @@ export default defineConfig({
defaultNS: 'grafana-prometheus',
functions: ['t', '*.t'],
transComponents: ['Trans'],
// eslint-disable-next-line no-restricted-syntax
sort: (a, b) => a.key.localeCompare(b.key, 'en-US'),
},
});

View file

@ -8,5 +8,7 @@ export default defineConfig({
defaultNS: 'grafana-sql',
functions: ['t', '*.t'],
transComponents: ['Trans'],
// eslint-disable-next-line no-restricted-syntax
sort: (a, b) => a.key.localeCompare(b.key, 'en-US'),
},
});

View file

@ -8,5 +8,7 @@ export default defineConfig({
defaultNS: 'grafana-azure-monitor-datasource',
functions: ['t', '*.t'],
transComponents: ['Trans'],
// eslint-disable-next-line no-restricted-syntax
sort: (a, b) => a.key.localeCompare(b.key, 'en-US'),
},
});

View file

@ -8,5 +8,7 @@ export default defineConfig({
defaultNS: 'mssql',
functions: ['t', '*.t'],
transComponents: ['Trans'],
// eslint-disable-next-line no-restricted-syntax
sort: (a, b) => a.key.localeCompare(b.key, 'en-US'),
},
});

File diff suppressed because it is too large Load diff