mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-09-26 19:41:29 +08:00
Implement smart capitalization based on locale (#17860)
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
/** @type {import('tailwindcss').Config} */
|
||||
|
||||
const plugin = require("tailwindcss/plugin");
|
||||
|
||||
module.exports = {
|
||||
darkMode: ["class"],
|
||||
content: [
|
||||
@@ -166,5 +169,16 @@ module.exports = {
|
||||
require("tailwindcss-animate"),
|
||||
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
||||
require("tailwind-scrollbar")({ nocompatible: true }),
|
||||
plugin(function ({ addUtilities }) {
|
||||
addUtilities({
|
||||
".smart-capitalize": {
|
||||
':root[lang="ru"] &, :root[lang="ar"] &, :root[lang="he"] &, :root[lang="zh"] &, :root[lang="ja"] &, :root[lang="ko"] &, :root[lang="hi"] &, :root[lang="th"] &':
|
||||
{
|
||||
textTransform: "none",
|
||||
},
|
||||
textTransform: "capitalize",
|
||||
},
|
||||
});
|
||||
}),
|
||||
],
|
||||
};
|
||||
|
Reference in New Issue
Block a user