Skip to content

Commit

Permalink
chore: add suggestions from Sarah
Browse files Browse the repository at this point in the history
  • Loading branch information
ematipico committed Nov 6, 2023
1 parent 561a1d4 commit a1482b2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 4 additions & 2 deletions packages/astro/src/@types/astro.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1395,7 +1395,7 @@ export interface AstroUserConfig {
* @version 3.5.0
* @description
*
* The default locale of your website/application
* The default locale of your website/application. This is a required field.
*/
defaultLocale: string;
/**
Expand All @@ -1405,7 +1405,9 @@ export interface AstroUserConfig {
* @version 3.5.0
* @description
*
* A list of all locales supported by the website. e.g. `['en', 'fr', 'es']` This list should also include the `defaultLocale`.
* A list of all locales supported by the website. e.g. `['en', 'fr', 'es']` This list should also include the `defaultLocale`. This is a required field.
*
* No particular language format or syntax is enforced, but your folder structure must match exactly the locales in the list.
*/
locales: string[];

Expand Down
4 changes: 3 additions & 1 deletion packages/astro/src/core/errors/errors-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1285,7 +1285,9 @@ export const MissingLocale = {
export const CantRenderPage = {
name: 'CantRenderPage',
title: "Astro can't render the route.",
message: "Astro cannot find any content to render for this route. There is no file or redirect associated with this route.",
message:
'Astro cannot find any content to render for this route. There is no file or redirect associated with this route.',
hint: 'If you expect to find a route here, this may be an Astro bug. Please file an issue/restart the dev server',
} satisfies ErrorData;

// Generic catch-all - Only use this in extreme cases, like if there was a cosmic ray bit flip
Expand Down

0 comments on commit a1482b2

Please sign in to comment.