30 lines
605 B
TypeScript
30 lines
605 B
TypeScript
import I18nKey from "@i18n/i18nKey";
|
|
import { i18n } from "@i18n/translation";
|
|
import { LinkPreset, type NavBarLink } from "@/types/config";
|
|
|
|
export const LinkPresets: { [key in LinkPreset]: NavBarLink } = {
|
|
[LinkPreset.Home]: {
|
|
name: i18n(I18nKey.home),
|
|
url: "/",
|
|
},
|
|
[LinkPreset.About]: {
|
|
name: i18n(I18nKey.about),
|
|
url: "/about/",
|
|
},
|
|
[LinkPreset.Archive]: {
|
|
name: i18n(I18nKey.archive),
|
|
url: "/archive/",
|
|
},
|
|
[LinkPreset.Series]: {
|
|
|
|
name: i18n(I18nKey.series),
|
|
|
|
url: '/series/',
|
|
|
|
},
|
|
[LinkPreset.Friends]: {
|
|
name: i18n(I18nKey.friends),
|
|
url: '/friends/',
|
|
},
|
|
};
|