Skip to content

FES should fetch translations within the same minor version #7813

Open
@ksen0

Description

@ksen0

Increasing access

FES internationalization improvement to match 1.x/2.x difference

Most appropriate sub-area of p5.js?

  • Accessibility
  • Color
  • Core/Environment/Rendering
  • Data
  • DOM
  • Events
  • Image
  • IO
  • Math
  • Typography
  • Utilities
  • WebGL
  • Build process
  • Unit testing
  • Internationalization
  • Friendly errors
  • Other (specify if possible)

Feature enhancement details

Currently, FES fetches translations using latest:

'https://cdn.jsdelivr.net/npm/p5/translations/{{lng}}/{{ns}}.json'

Which results in a. 1.x sketch getting 2.x FES translations, which may be inaccurate. Should fetch within the minor version, but latest patch, for example: if the sketch is 1.11.1, it should get language for 1.11.7 (or whatever is latest)

This should be patched first in 1.x, and then a matching 2.x

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions