This commit is contained in:
isUnknown 2024-10-08 17:29:59 +02:00
parent 3f10b863c1
commit fa34aed357
18 changed files with 165 additions and 171 deletions

9
src/helpers/index.js Normal file
View file

@ -0,0 +1,9 @@
function toPascalCase(string) {
return string.replace(/\p{L}+/gu, function (w) {
return (
w[0].toLocaleUpperCase("fr-FR") + w.slice(1).toLocaleLowerCase("fr-FR")
);
});
}
export { toPascalCase };