Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,5 @@ pnpm-debug.log*
.eslintcache
.stylelintcache
yarn.lock

pnpm-lock.yaml
pnpm-workspace.yaml
8 changes: 8 additions & 0 deletions packages/lang/fr-FR.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
export default {
start: "Début",
end: "Fin",
pure: "Pur",
gradient: "Dégradé",
linear: "Linéaire",
radial: "Radial",
};
4 changes: 3 additions & 1 deletion packages/lang/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import enUS from "./en-US";
import zhCn from "./zh-CN";
import frFR from "./fr-FR";

export type Lang = "ZH-cn" | "En";
export type Lang = "ZH-cn" | "En" | "Fr";

export const Local: { [K in Lang]: { [key: string]: string } } = {
En: enUS,
Fr: frFR,
"ZH-cn": zhCn,
};
2 changes: 1 addition & 1 deletion packages/utils/type.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ComputedRef } from "vue";

export type SupportLang = "ZH-cn" | "En";
export type SupportLang = "ZH-cn" | "En" | "Fr";

export interface ColorPickerProvider {
lang: ComputedRef<{ [key: string]: string }>;
Expand Down
4 changes: 2 additions & 2 deletions src/stories/ColorPicker.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,9 @@ export default {
},
lang: {
type: "string",
description: "ZH-cn | En",
description: "ZH-cn | En | Fr",
control: { type: "select" },
options: ["ZH-cn", "En"],
options: ["ZH-cn", "En", "Fr"],
table: {
defaultValue: {
summary: "ZH-cn",
Expand Down