DataTables / DataTables/Plugins

i18n plugin missing basic language versions for languages where country-specific versions exist

Open
#576 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
1.1k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Description

There are a number of languages in the i18n plugin where there are country-specific versions of the language files but no basic versions. For example there are sv-SE.* files but no sv.* files.

This causes problems for applications that choose a language file, eg using PHP's Locale::lookup() method, based on a user-specified locale, either via a config setting or via the browser language preferences. For example, if the locale is set to 'sv' then the 'sv-SE' file will not be found. The RFC 4647 lookup algorithm used by Locale:lookup() allows for falling back from, eg, 'sv-SE' to 'sv' but not the other way round.

There should be a basic language file for all languages where there is a country-specific version. In most cases this will be a simple matter of copying the main country-specific version, eg 'sv-SE' to 'sv, 'de-DE' to 'de', 'nl-NL' to 'nl', etc.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Inspect the i18n plugin's locale files, starting with the sv-SE.*, de-DE, and nl-NL examples mentioned in the issue. Identify every country-specific locale without a basic counterpart, add the corresponding basic language files, and verify that each affected language now has one.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
internationalization
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.