crooked-potato-83138
05/12/2025, 10:27 AMstocky-account-63046
05/12/2025, 10:34 AMplugin.addLocale('en-uk', 'UK English');
For an example see
https://github.com/rancher/ui-plugin-examples/tree/main/pkg/uk-localestocky-account-63046
05/12/2025, 10:35 AMcrooked-potato-83138
05/12/2025, 10:42 AMstocky-account-63046
05/12/2025, 10:51 AM<url extension>/l10n/zh-hands.yaml
file.
Can you provide a link to your extension?crooked-potato-83138
05/12/2025, 10:53 AMcrooked-potato-83138
05/12/2025, 11:22 AMcrooked-potato-83138
05/12/2025, 11:23 AMstocky-account-63046
05/12/2025, 12:31 PMcrooked-potato-83138
05/12/2025, 12:46 PM./pkg/<extension-name>/l10n and assets/translations dir
?stocky-account-63046
05/12/2025, 12:47 PMstocky-account-63046
05/12/2025, 12:49 PMpkg/<ext>/l10n/<locale>.yaml
right?busy-ability-54059
05/12/2025, 1:03 PMaddLocale
method like https://github.com/rancher/ui-plugin-examples/blob/main/pkg/uk-locale/index.ts#L13, but the file should still live in l10n
folderbusy-ability-54059
05/12/2025, 1:05 PMcrooked-potato-83138
05/12/2025, 1:06 PMcrooked-potato-83138
05/14/2025, 9:11 AMcrooked-potato-83138
05/14/2025, 9:12 AMcrooked-potato-83138
05/14/2025, 9:13 AMbusy-ability-54059
05/14/2025, 9:25 AMcrooked-potato-83138
05/14/2025, 9:32 AMcrooked-potato-83138
05/14/2025, 9:32 AMbusy-ability-54059
05/14/2025, 12:58 PMl10n/zh-hans.yaml
in your extension.
landing:
landingPrefs:
title: SOME-TITLE-FROM-ZH-HANS
and I was able to see the change on a translation - in this case the home screen. I also did a build and developer load and everything worked fine.
Are you sure you’re applying the translations with the correct yaml hierarchy? Because I can’t find any problem with it.crooked-potato-83138
05/14/2025, 1:04 PMbusy-ability-54059
05/14/2025, 2:59 PMl10n
file in Elemental extension (check screenshots).
I just added a zh-hans.yaml
file with the correct yaml structure to override the translation I wanted. This definitively proves that the mechanism is working fine.crooked-potato-83138
05/15/2025, 8:44 AM