mirror of
https://github.com/cupcakearmy/svelte-i18n.git
synced 2024-11-16 18:10:43 +01:00
chore: 🤖 remove unused methods
This commit is contained in:
parent
bd3057ba2d
commit
0e0a31fc9e
@ -1,21 +1,5 @@
|
||||
import { GetClientLocaleOptions } from '../types'
|
||||
|
||||
export function capital(str: string) {
|
||||
return str.replace(/(^|\s)\S/, l => l.toLocaleUpperCase())
|
||||
}
|
||||
|
||||
export function title(str: string) {
|
||||
return str.replace(/(^|\s)\S/g, l => l.toLocaleUpperCase())
|
||||
}
|
||||
|
||||
export function upper(str: string) {
|
||||
return str.toLocaleUpperCase()
|
||||
}
|
||||
|
||||
export function lower(str: string) {
|
||||
return str.toLocaleLowerCase()
|
||||
}
|
||||
|
||||
// could use a reduce, but a simple for-in has less footprint
|
||||
export const flatObj = (obj: Record<string, any>, prefix = '') => {
|
||||
const flatted: Record<string, string> = {}
|
||||
|
Loading…
Reference in New Issue
Block a user