locale-validation.ts

Discovered 3 months ago
11 views
3 downloads

File Overview

You are viewing details for locale-validation.ts. This file matches queries related to locale-validation.ts and was indexed by our automated crawlers.

Live Preview

TS file No preview available for this file type.
Download File

File Overview

You are viewing details for locale-validation.ts. This file matches queries related to locale-validation.ts and was indexed by our automated crawlers.
Login to view source details.

"View file"
Type
TS
Indexed
Jul 31, 2026
Source Domain
Hidden
Status
Active
Views
11
Downloads
3
File Size
—

How We Found This File

This listing was created automatically by the AutoFileSearch web crawler on July 31, 2026. Our crawler continuously scans publicly accessible web pages, identifies links pointing to downloadable files, and records the surrounding context — including page titles, anchor text, and page descriptions — to build a searchable index.

More about our indexing process

What we index: The public URL of the file, the text of the link pointing to it, the page title and description of the hosting page, and a snippet of surrounding text. We do not download, store, or mirror the file itself.

Source verification: Files are periodically re-checked to confirm they are still accessible. Pages marked "Active" were reachable at last check. A "Removed" badge means the source URL returned a 404 or similar error.

AI enrichment: For files where the surrounding context is sparse, we use an AI language model to generate a plain-English description of what the file likely contains, based on its filename, extension, and the page content we indexed.

Discovery Context

Surrounding Context
"View file"
Current Page Info
Page Title Fixed overly permissive publication locale setting by betschki · Pull Request #25774 · TryGhost/Ghost · GitHub
Meta Description ref #24673 − since the old PR was quite outdated, it was easier to close that and start fresh. Most changes have been migrated here, though the LOCALE_DATA has been moved to a static JSON due to CommonJS export/import issues. Added SelectWithOther component to admin-x-design-system that provides a dropdown with an "Other..." option that switches to a text input Added locale validation utility with support for BCP 47 language tags Updated PublicationLanguage to use SelectWithOther for better UX Added LOCALE_DATA to @tryghost/i18n with human-readable labels Created ESM entry point for i18n to support admin-x apps imports Added comprehensive unit and E2E tests NoteEnhances language selection UX and centralizes locale data. Adds SelectWithOther to design system (dropdown with “Other…” text input, validation, search) plus Storybook stories and exports Updates PublicationLanguage to use SelectWithOther, loads options from @tryghost/i18n/lib/locale-data.json, and validates via new validateLocale utility Refactors @tryghost/i18n to source locales from static lib/locale-data.json; updates CommonJS exports (default, LOCALE_DATA, SUPPORTED_LOCALES, generateResources) Adds unit tests for validateLocale, acceptance/E2E tests for language selection, and page object updates Dockerfile: ensure ghost/i18n is included in relevant build stages to support new imports Written by Cursor Bugbot for commit e6bea52. This will update automatically on new commits. Configure here.

Disclaimer: AutoFileSearch is a public file index. We do not host, store, or distribute any files. All links point to their original third-party sources. This listing was created by our automated web crawlers and indexes a publicly accessible file. If you are the rights holder and believe this listing should be removed, please submit a DMCA removal request.

Access File

11 people viewed this file

Download Now Visit Source
* Premium access or one-time unlock required.