.. include:: /Includes.rst.txt .. _feature-1791893165: ========================================================= Feature: Languages and formats per company and per person ========================================================= Description =========== Administrators choose which of the installed languages their company offers (``enabledLanguages``, at least one; all of them unless chosen), the day weeks start on (``firstDayOfWeek``, Monday unless chosen) and the recorded fields the activity feed shows first (``activityFeedFields``). Users choose their language only among the languages of the company they act in. A user whose language is no longer offered keeps it until the next login, is then moved to the first offered language of the browser, else English, else the first offered language, is told once on the first page, and finds the change in their change history. Every person may choose their own date format, clock, first day of the week, calendar system (``gregorian`` unless a package installs another) and the rows per page of lists without a page size of their own; without a choice the company's settings apply. Impact ====== ``updateCompany`` accepts ``enabledLanguages``, ``firstDayOfWeek`` and ``activityFeedFields`` in ``settings``, for administrators only; ``updateMyPreferences`` accepts ``dateFormat``, ``timeFormat``, ``calendarSystem``, ``firstDayOfWeek`` and ``defaultPageSize``, and ``getMyPreferences`` returns them. A language the company does not offer, an empty list of languages, a field the change history does not record or a calendar system that is not installed is refused with 422. The company's date and time formats keep their names ``dateFormat`` and ``timeFormat``. .. index:: API, package:adsum-core