Skip to content

Conversation

ksen0
Copy link
Member

@ksen0 ksen0 commented Sep 23, 2025

Resolves #7813
The 2.0 branch patch matching #7878 (which has been reviewed and merged)

const version = '1.11.7';
const loadPath = 'https://cdn.jsdelivr.net/npm/p5@' + version.replace(/^(\d+\.\d+)\.\d+.*$/, '$1') + '/translations/{{lng}}/{{ns}}.json';
console.log(loadPath);
// https://cdn.jsdelivr.net/npm/[email protected]/translations/{{lng}}/{{ns}}.json
// will become https://cdn.jsdelivr.net/npm/[email protected]/translations/es/translation.json which exists

@ksen0 ksen0 changed the base branch from main to dev-2.0 September 23, 2025 16:42
@ksen0 ksen0 marked this pull request as ready for review September 23, 2025 16:42
@ksen0 ksen0 merged commit 165a9ed into dev-2.0 Sep 23, 2025
3 checks passed
@ksen0 ksen0 deleted the 7813-2.0 branch September 23, 2025 16:49
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.

FES should fetch translations within the same minor version

1 participant