add name
and remove language
from LanguageTag
#296
Labels
scope: inlang/sdk
Related to source-code/sdk.
type: refactor
Code being refactored to improved performance or long-term maintainability.
Problem
The LanguageTag AST contains
language
property which is supposed to be an ISO-639 identifier but that is not validated. Enforcing ISO-639 ids prevents projects to adopt inlang when they already use country code mixes likeen-US
.Proposal
Remove the
language
property and addname
.name
can be an arbitrary identifier and will be deprecated when language tags are fully supported. That opens the possibility to support language-country identifiers now without implementing constant string-based conditional logic.The text was updated successfully, but these errors were encountered: