feat: rename use of locale to lang where applicable
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { Lang } from "../lang"
|
||||
import type { Lang } from "@/constants/languages"
|
||||
|
||||
export type TrackingProps = {
|
||||
pageData: {
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
export const langEnum = {
|
||||
en: "en",
|
||||
sv: "sv",
|
||||
no: "no",
|
||||
fi: "fi",
|
||||
da: "da",
|
||||
de: "de",
|
||||
}
|
||||
|
||||
export type Lang = keyof typeof langEnum
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Lang } from "./lang"
|
||||
import { Lang } from "@/constants/languages"
|
||||
|
||||
export type SearchParams<S = {}> = {
|
||||
searchParams: S & { [key: string]: string }
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { Edges } from "../utils/edges"
|
||||
import type { Lang } from "@/types/lang"
|
||||
import type { Lang } from "@/constants/languages"
|
||||
import type { Typename } from "../utils/typename"
|
||||
|
||||
export enum Section {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Lang } from "@/types/lang"
|
||||
import type { Lang } from "@/constants/languages"
|
||||
import type { EmbedEnum } from "./embeds"
|
||||
import type { Typename } from "./typename"
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { RTEItemTypeEnum } from "./enums"
|
||||
import type { EmbedTypesEnum, RTEItemType } from "./enums"
|
||||
import type { Lang } from "../lang"
|
||||
import type { Lang } from "@/constants/languages"
|
||||
|
||||
export interface Attributes {
|
||||
[key: string]: any
|
||||
|
||||
Reference in New Issue
Block a user