Skip to content

Commit

Permalink
feat: turn off fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
BohdanK-W32 committed Oct 27, 2023
1 parent d9b4db1 commit 4d49605
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/globals/GeneralInfo.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { GlobalConfig } from 'payload/types';

import { phoneField } from 'payload-plugin-phone-field';
import { phoneField } from 'fields/phone';

import { generalGroup } from 'utils/groups';

Expand Down
36 changes: 35 additions & 1 deletion src/payload-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ export interface Config {
globals: {
'about-page': AboutPage;
'blog-page': BlogPage;
common: Common;
'contact-form': ContactForm;
'contacts-page': ContactsPage;
'cookies-policy-page': CookiesPolicyPage;
footer: Footer;
Expand Down Expand Up @@ -110,7 +112,7 @@ export interface BlogPost {
description: string;
tags: string[] | BlogTag[];
author: string | BlogAuthor;
landscape?: string | BlogCoverImage;
cover?: string | BlogCoverImage;
content?: {
[k: string]: unknown;
}[];
Expand Down Expand Up @@ -942,6 +944,36 @@ export interface BlogPage {
updatedAt?: string;
createdAt?: string;
}
export interface Common {
id: string;
translation?:
| {
[k: string]: unknown;
}
| unknown[]
| string
| number
| boolean
| null;
_status?: 'draft' | 'published';
updatedAt?: string;
createdAt?: string;
}
export interface ContactForm {
id: string;
translation?:
| {
[k: string]: unknown;
}
| unknown[]
| string
| number
| boolean
| null;
_status?: 'draft' | 'published';
updatedAt?: string;
createdAt?: string;
}
export interface ContactsPage {
id: string;
content: {
Expand Down Expand Up @@ -1241,6 +1273,8 @@ declare module 'payload' {
globals: {
'about-page': AboutPage
'blog-page': BlogPage
'common': Common
'contact-form': ContactForm
'contacts-page': ContactsPage
'cookies-policy-page': CookiesPolicyPage
'footer': Footer
Expand Down
1 change: 0 additions & 1 deletion src/payload.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,6 @@ export default buildConfig({
localization: {
locales,
defaultLocale,
fallback: true,
},
i18n: {
resources: {
Expand Down

0 comments on commit 4d49605

Please sign in to comment.