Project

General

Profile

Actions

Feature proposal #9639

open

Improve country conversions

Added by krileon 3 days ago. Updated 3 days ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
Start date:
28 March 2025
Due date:
% Done:

100%

Estimated time:

Description

Currently functions like countryToTwoLetters only convert from country name to two letters. It's not taking into account that country could be three letters or two letters already. Same for countryToThreeLetters. Other functions like twoToThreeLettersCountry can then be replace by countryToThreeLetters as it'd handle all 3 cases.

Additionally twoLettersToCountry conversion from 2-letters to name should be replaced to a countryToName function that also handles all 3 cases. This removes the risks of country not converting right when it's passed values we already know about.

Actions #1

Updated by krileon 3 days ago

  • Status changed from Assigned to Resolved
  • % Done changed from 0 to 100

Implemented in MR !353

Actions

Also available in: Atom PDF