Skip to content

Add a country field for people and localize the calendar to the active language#2034

Merged
NicoPennec merged 7 commits into
cgwire:mainfrom
NicoPennec:user-country
Jun 2, 2026
Merged

Add a country field for people and localize the calendar to the active language#2034
NicoPennec merged 7 commits into
cgwire:mainfrom
NicoPennec:user-country

Conversation

@NicoPennec
Copy link
Copy Markdown
Member

@NicoPennec NicoPennec commented Jun 2, 2026

Problem

  • Kitsu couldn't record where a team member is based, information the studio needs to estimate its per-country carbon footprint.
  • People had no way to set their own country from their profile.
  • The user calendar was always shown in English, ignoring the chosen interface language.
  • The People CSV import only recognized a few of the fields a person actually has, so bulk edits couldn't cover the rest.

Solution

  • Add a Country field to people, shown in the people list and editable from the edit form (hidden for bots and clients).
  • Let users choose their own country from their profile.
  • Show country names in the active interface language, falling back to the raw code when no translation is available.
  • Make the user calendar follow the active language and switch live when the language changes.
  • Recognize the remaining person fields (Departments, Country, Position, Seniority, Daily rate) as People CSV import columns.

PR linked to cgwire/zou#1100

Expose a reactive localeCode (a valid Intl/moment code such as 'en' or 'zh-tw') updated by setLocale, so consumers re-localize when the language changes.
Drive FullCalendar's locale from the reactive localeCode and refresh it on language change, instead of being hardcoded to English.
Editable in the person modal and shown as a column in the people list, localized with Intl.DisplayNames from the ISO 3166-1 alpha-2 codes. The country is only stored for non-bot, non-client people.
Add the country field to the profile page (hidden for clients and guests), reusing the people country combobox options.
@NicoPennec NicoPennec merged commit 27f4014 into cgwire:main Jun 2, 2026
5 checks passed
@NicoPennec NicoPennec deleted the user-country branch June 2, 2026 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant