Project

General

Profile

Actions

Feature proposal #9639

closed

Improve country conversions

Feature proposal #9639: Improve country conversions

Added by krileon 10 months ago. Updated 7 months ago.

Status:
Closed
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.

Updated by krileon 10 months ago Actions #1

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

Implemented in MR !353

Updated by beat 7 months ago Actions #2

  • Status changed from Resolved to Closed
Actions

Also available in: PDF Atom