[wp-trac] [WordPress Trac] #54858: i18n: Missing locale data if part of the translation are empty

WordPress Trac noreply at wordpress.org
Wed Jan 19 11:41:27 UTC 2022


#54858: i18n: Missing locale data if part of the translation are empty
--------------------------+------------------------------
 Reporter:  arthur791004  |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  I18N          |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by arthur791004):

 Oh, I'm sorry for mistyping. What I want to say is that the property in
 the domain configuration might be overridden and become undefined. In our
 use case, it should be `language` property which comes from the
 translation json file. See https://github.com/Automattic/wp-
 calypso/blob/94fe59f75d919c439f182764eed7d86f1f63da48/packages/i18n-
 utils/src/locale-context.tsx#L41. We will try to get the language property
 from the domain configuration but it might be undefined.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/54858#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list