Getting user profile custom field via JS

I’m mostly just trying to create a small theme component that will make sure the custom user fields that I add in admin > customize > user fields are:

  1. Added to translatable i18n so I can customize the text of them in the admin > customize > text section
  2. Added as interpolation keys so I can use them as %{key} in the admin > customize > text section

Basically trying to solve my own problem I posted here:

But I couldn’t get past the first part of just getting the key/value combination from the user fields in the user object.

I’ll take a look at what you’ve added, thank you!

1 Like