mirror of
https://github.com/grafana/grafana.git
synced 2026-02-18 18:20:52 -05:00
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:
parent
b3fd56dc4e
commit
80c73c2c81
10 changed files with 1252 additions and 1234 deletions
|
|
@ -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'),
|
||||
},
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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'),
|
||||
},
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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'),
|
||||
},
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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'),
|
||||
},
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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'),
|
||||
},
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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'),
|
||||
},
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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'),
|
||||
},
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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'),
|
||||
},
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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
Loading…
Reference in a new issue