statamic / ideas

💡Discussions on ideas and feature requests for Statamic
https://statamic.dev
32 stars 1 forks source link

Make fields in User localizable for front-end #1256

Open devpaps opened 2 weeks ago

devpaps commented 2 weeks ago

Hello there!

I've created a new field called "bio" where the user can tell a bit about them self, then i'm using this in the articles page.

This is a multisite with two languages. I've localized the "bio" field, but somehow when i switch between site in the control panel i only see one translation. This also reflects in the front-end, i can't see the English translation when i switch to that page.

Is this something that others would find good to have? Or is there a good workaround on this? Adding some images for better clarity.

1

2

3

4 Here i could just display some biography on the person who wrote the article based on the locale.

5

duncanmcclean commented 2 weeks ago

Unlike entries or terms, users can't be localized across sites. The "localizable" icon shouldn't be showing on user blueprints.

devpaps commented 2 weeks ago

Unlike entries or terms, users can't be localized across sites.

Alright, got it! But, wouldn't it be a good thing to have? Although I can't come up with another suggestion than my own above, having localized fields for users. 🤔

The "localizable" icon shouldn't be showing on user blueprints.

Yes, that was also one thing i was wondering about. If it's not possible to have it localized we shouldn't show it for the user. 👍🏻

duncanmcclean commented 2 weeks ago

Alright, got it! But, wouldn't it be a good thing to have? Although I can't come up with another suggestion than my own above, having localized fields for users. 🤔

The easiest way to "localize" users right now would be to have separate fields for the various locales.

We can keep this feature request open.

Yes, that was also one thing i was wondering about. If it's not possible to have it localized we shouldn't show it for the user. 👍🏻

Yep, they shouldn't be showing. I've opened a bug report for that: statamic/cms#11048