opral / inlang-sdk

0 stars 0 forks source link

save language tags in lower case to ensure consistency #115

Closed samuelstroschein closed 2 months ago

samuelstroschein commented 3 months ago

Problem

Language tags are inconsistent across inlang apps because they are case sensitive. See https://github.com/opral/inlang-fink/issues/40.

Proopsal

Store language tags always in lower case in an inlang project.

samuelstroschein commented 3 months ago

@loris.sigrist do you think this is a good idea?

LorisSigrist commented 2 months ago

Yes, Paraglide already noramlizes the case for all comparisons. It would be good to have some consistency

samuelstroschein commented 2 months ago

cancelling. this is the job of a validation rule. if we implicitly save locales in lower case, i am sure that users will be surprised.