0

i have a few components where i export a string as identifier for each component. At the root of my webpart "webpartname.tsx" i dynamicly load different components and there i reuse the exportet identifier. Now i want to use the identifier as key in my locale files to translate the name (view) of the component. In english the displayname of component 1 is "dashboard" and in german the displayname is "Übersicht".

But when i try to import the key of my component into the "mystrings.d.ts" i get error in a few components.

enter image description here

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.