Move processors in their own file

This commit is contained in:
Nicola Benaglia
2025-05-18 14:49:10 +02:00
parent 49a01151df
commit 5a5d68ab79
2 changed files with 12 additions and 12 deletions

11
src/i18n/processors.ts Normal file
View File

@@ -0,0 +1,11 @@
export const capitalizeAll = {
type: 'postProcessor',
name: 'capitalizeAll',
process: (value: string) => value.toUpperCase(),
};
export const capitalizeFirst = {
type: 'postProcessor',
name: 'capitalizeFirst',
process: (value: string) => value.charAt(0).toUpperCase() + value.slice(1),
};