-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8fd3c1c
commit a36156d
Showing
8 changed files
with
97 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 52 additions & 0 deletions
52
...website/src/app/[locale]/doc/concept/content_declaration/declaration_watching/metadata.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
import { type IConfigLocales, getTranslationContent } from 'intlayer'; | ||
import type { Metadata } from 'next'; | ||
import type { LocalParams } from 'next-intlayer'; | ||
|
||
export const generateMetadata = ({ | ||
params: { locale }, | ||
}: LocalParams): Metadata => { | ||
const t = <T>(content: IConfigLocales<T>) => | ||
getTranslationContent(content, locale); | ||
|
||
return { | ||
title: t<string>({ | ||
en: 'Intlayer | Declaration file watching', | ||
fr: 'Intlayer | Actualisation des changements des fichiers de déclaration', | ||
es: 'Intlayer | Actualización de los cambios en los archivos de declaración', | ||
}), | ||
description: t({ | ||
en: 'Watch your content declaration files for changes and rebuild dictionaries automatically. Follow the steps in this online documentation to set up your project in a few minutes.', | ||
fr: 'Surveillez les fichiers de déclaration de contenu pour les modifications et reconstruisez automatiquement les dictionnaires. Suivez les étapes de cette documentation en ligne pour configurer votre projet en quelques minutes.', | ||
es: 'Monitore sus archivos de declaración de contenido para cambios y reconstruya automáticamente los diccionarios. Siga los pasos de esta documentación en línea para configurar su proyecto en unos minutos.', | ||
}), | ||
keywords: t({ | ||
en: [ | ||
'Update', | ||
'Content Declaration', | ||
'Internationalization', | ||
'Documentation', | ||
'Intlayer', | ||
'JavaScript', | ||
'React', | ||
], | ||
fr: [ | ||
'Mise à jour', | ||
'Déclaration de Contenu', | ||
'Internationalisation', | ||
'Documentation', | ||
'Intlayer', | ||
'JavaScript', | ||
'React', | ||
], | ||
es: [ | ||
'Actualización', | ||
'Declaración de Contenido', | ||
'Internacionalización', | ||
'Documentación', | ||
'Intlayer', | ||
'JavaScript', | ||
'React', | ||
], | ||
}), | ||
}; | ||
}; |
22 changes: 22 additions & 0 deletions
22
apps/website/src/app/[locale]/doc/concept/content_declaration/declaration_watching/page.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { DocPageLayout } from '@components/DocPage/DocPageLayout'; | ||
import { DocumentationRender } from '@components/DocPage/DocumentationRender'; | ||
import { PageLayout } from '@layouts/PageLayout'; | ||
import type { NextPageIntlayer } from 'next-intlayer'; | ||
import { generateMetadata } from './metadata'; | ||
|
||
export { generateMetadata }; | ||
|
||
const Page: NextPageIntlayer = ({ params: { locale } }) => ( | ||
<PageLayout locale={locale} editorEnabled={false}> | ||
<DocPageLayout | ||
activeSections={[ | ||
'concept', | ||
'content_declaration', | ||
'declaration_watching', | ||
]} | ||
> | ||
<DocumentationRender docName="content_declaration__declaration_watching" /> | ||
</DocPageLayout> | ||
</PageLayout> | ||
); | ||
export default Page; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters