Skip to content

Diogo/polystella v1#244

Draft
diogoascarneiro wants to merge 27 commits intomainfrom
diogo/polystella-v1
Draft

Diogo/polystella v1#244
diogoascarneiro wants to merge 27 commits intomainfrom
diogo/polystella-v1

Conversation

@diogoascarneiro
Copy link
Copy Markdown
Contributor

@diogoascarneiro diogoascarneiro commented May 5, 2026

Adds the new PolyStella AI Localization integration for Astro. Description is WIP.

Non-Polystella changes:

  • Updated Prettier version, added .prettierrc file (hence some of the updates to seemingly random files)

… Vite

- Update @astrojs/cloudflare from ^13.1.2 to ^13.1.10
- Update astro from ^6.0.5 to ^6.1.6
- Update wrangler from ^4.84.1 to ^4.85.0
- Update vite override from ^7 to ^8
- Update pnpm lockfile with new dependency versions
- Add Volta section to package.json specifying Node 24.15.0
- Reformat pnpm-lock.yaml with consistent quote style and spacing
…tions using s3mini polystella config file and tests
…s, enabling use of <Content/> or entry.rendered.html
…build-time logging, double quotes escaping when parsing
… and utilities, ai translation frontmatter and a build report
…shell translation files and setup the i18n collection. Applied prettier to existing files
… translation protocol to reduce token usage by around 30%
…ations is now getTranslations). Fixed issues with footer and nav translations
…thout having to run a build, added preview branch handling for translations, added further UI strings.
@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented May 5, 2026

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
cloudflare-research 4893f82 Commit Preview URL

Branch Preview URL
May 06 2026, 09:47 AM

const stripped = normalised.replace(/^src\/pages\//, "").replace(/\.astro$/, "");
// Drop a trailing `/index` — section indexes route to the bare URL.
const pattern = stripped.replace(/(^|\/)index$/, "");
const isDynamic = /\[[^\]]+\]/.test(pattern);
/** Stateless R2 client; safe to share across concurrent operations. */
export function createR2Client(opts: R2ConnectionOptions): R2Client {
const baseEndpoint = opts.endpoint ?? `https://${opts.accountId}.r2.cloudflarestorage.com`;
const endpoint = `${baseEndpoint.replace(/\/+$/, "")}/${opts.bucket}`;
}

function stripCodeFences(text: string): string {
const fenced = /^```(?:\w+)?\s*\n([\s\S]*?)\n```$/i.exec(text);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants