* change root dit and change way to import modules * update deps to latest versions * use latest tools for building bundles * rewrite webpack config * use nomodule technique for loading modern bundle * inject polyfills by babel usebuiltins * update eslint rules * rename all style files to CSS * use postcss preset env for building styles * proper typescript typing * put all html files to templates folder * etc
4 lines
123 B
TypeScript
4 lines
123 B
TypeScript
export function getLocale(params: { locale?: string; [key: string]: unknown }): string {
|
|
return params.locale || 'en';
|
|
}
|