Closed C17AN closed 1 week ago
The locale properties used in the project are of the string type, and it would be nice if they were managed more strictly with the Locale type.
locale
string
Locale
AS-IS (Code Suggestion at on-github.tsx)
on-github.tsx
TO-BE
First of all, I think this could be a breaking change, so I started by fixing one small type.
If there is a reason for using the string type considering future scalability, etc., you can reject this PR. :)
Or If you think this proposal is okay, I'll fix the parts that are considered to have less impact to the Locale type.
Fixed via https://github.com/mdn/yari/pull/11323.
Summary
The
locale
properties used in the project are of thestring
type, and it would be nice if they were managed more strictly with theLocale
type.AS-IS (Code Suggestion at
on-github.tsx
)TO-BE
Anything else?
First of all, I think this could be a breaking change, so I started by fixing one small type.
If there is a reason for using the string type considering future scalability, etc., you can reject this PR. :)
Or If you think this proposal is okay, I'll fix the parts that are considered to have less impact to the
Locale
type.Validations