# locale

Published articles for locale.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## Home Assistant timezone and configuration override issues

DevFeed: [Home Assistant timezone and configuration override issues](<https://devfeed.tech/articles/two-nasty-surprises-in-home-assistant-s-config-18922.md>)

Original publisher: [Read original article](<https://blog.frankel.ch/home-assistant/9/>)

Author: Nicolas Fränkel

Published: 2026-07-05T00:00:00Z

Content type: opinion

Language: en

Sources: [Nicolas Fränkel](<https://devfeed.tech/sources/nicolas-frankel.md>)

Topics: [Home Assistant](<https://devfeed.tech/topics/home-assistant.md>), [timezone](<https://devfeed.tech/topics/timezone.md>), [Automation](<https://devfeed.tech/topics/automation.md>), [bug](<https://devfeed.tech/topics/bug.md>), [configuration](<https://devfeed.tech/topics/configuration.md>), [YAML](<https://devfeed.tech/topics/yaml.md>)

Tags: [automation](<https://devfeed.tech/tags/automation.md>), [bugs](<https://devfeed.tech/tags/bugs.md>), [config](<https://devfeed.tech/tags/config.md>), [home-assistant](<https://devfeed.tech/tags/home-assistant.md>), [locale](<https://devfeed.tech/tags/locale.md>), [technical](<https://devfeed.tech/tags/technical.md>), [timezone](<https://devfeed.tech/tags/timezone.md>), [user-experience](<https://devfeed.tech/tags/user-experience.md>), [yaml](<https://devfeed.tech/tags/yaml.md>)

### AI overview

The author describes Home Assistant shutter automations that ran an hour late during summer time because the instance timezone appeared as Paris/+1. Overriding the timezone in configuration removed UI-set settings, requiring all settings to be specified again in YAML.

### Source excerpt

Last year, I motorized the rolling shutters on the southern façade of my apartment. My idea was to manage them via Home Assistant. I had a couple of automations in mind: In the evening, roll down the shutters of my bedroomIn the morning:If it's too hot outside, roll down all shuttersIf it's too cold outside, roll down all shuttersIn other cases, roll up all shutters but my bedroom's Living in France, I added the official Météo France integration.

## Locale-sensitive text segmentation in JavaScript with Intl.Segmenter

DevFeed: [Locale-sensitive text segmentation in JavaScript with Intl.Segmenter](<https://devfeed.tech/articles/locale-sensitive-text-segmentation-in-javascript-with-intl-segmenter-4078.md>)

Original publisher: [Read original article](<https://developer.mozilla.org/en-US/blog/javascript-intl-segmenter-i18n/>)

Author: brian-smith

Published: 2024-09-03T00:00:00Z

Content type: tutorial

Language: en

Sources: [MDN Blog](<https://devfeed.tech/sources/mdn-blog.md>)

Topics: [JavaScript](<https://devfeed.tech/topics/javascript.md>), [Localization (l10n)](<https://devfeed.tech/topics/localization.md>), [Web Development](<https://devfeed.tech/topics/web-development.md>), [browser](<https://devfeed.tech/topics/browser.md>)

Tags: [applications](<https://devfeed.tech/tags/applications.md>), [browsers](<https://devfeed.tech/tags/browsers.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [learn](<https://devfeed.tech/tags/learn.md>), [locale](<https://devfeed.tech/tags/locale.md>)

### AI overview

This tutorial explains how to use JavaScript's Intl.Segmenter to perform locale-sensitive text segmentation. It demonstrates structured, locale-aware word segmentation for Japanese text and shows how the results can support reliable word counts and other localization-aware application features.

### Source excerpt

Learn how to use Intl.Segmenter for locale-sensitive text segmentation in JavaScript to simplify localization, count words or sentences in different languages, and more.

## The C Standard Library Function isspace() Depends on Locale

DevFeed: [The C Standard Library Function isspace() Depends on Locale](<https://devfeed.tech/articles/the-c-standard-library-function-isspace-depends-on-locale-20753.md>)

Original publisher: [Read original article](<https://www.evanjones.ca/isspace_locale.html>)

Published: 2023-06-06T13:41:23Z

Content type: article

Language: en

Sources: [Evan Jones](<https://devfeed.tech/sources/evan-jones.md>)

Topics: [C](<https://devfeed.tech/topics/c.md>), [ASCII](<https://devfeed.tech/topics/ascii.md>), [bug](<https://devfeed.tech/topics/bug.md>), [Library](<https://devfeed.tech/topics/library.md>)

Tags: [ascii](<https://devfeed.tech/tags/ascii.md>), [bug](<https://devfeed.tech/tags/bug.md>), [c](<https://devfeed.tech/tags/c.md>), [function](<https://devfeed.tech/tags/function.md>), [implementation](<https://devfeed.tech/tags/implementation.md>), [library](<https://devfeed.tech/tags/library.md>), [locale](<https://devfeed.tech/tags/locale.md>), [mac](<https://devfeed.tech/tags/mac.md>), [mac-os](<https://devfeed.tech/tags/mac-os.md>), [standard](<https://devfeed.tech/tags/standard.md>), [standard-library](<https://devfeed.tech/tags/standard-library.md>)

### AI overview

The article explains that C's isspace() behavior depends on the active locale. In the default C locale it recognizes six ASCII whitespace characters, while other locales may also recognize Unicode whitespace. The author connects this behavior to a parsing bug involving PostgreSQL Hstore values on Mac OS X.

### Source excerpt

This is a post for myself, because I wasted a lot of time understanding this bug, and I want to be able to remember it in the future. I expect close to zero others to be interested. The C standard library function isspace() returns a non-zero value (true) for the six "standard" ASCII white-space characters ('\t', '\n', '\v', '\f', '\r', ' '), and any locale-specific characters. By default, a program starts in the "C" locale, which will only return true for the six ASCII white-space characters. However, if the program changes locales, it can return true for other values. As a result, unless you really understand locales, you should use your own version of this function, or ICU4C's u_isspace() function. An implementation of isspace() for ASCII is one line: /* Returns true for the 6 ASCII white-space characters: \t \n \v \f \r ' '. */ int isspace_ascii(int c) { return c == '\t' || c == '\n' || c == '\v' || c == '\f' || c == '\r' || c == ' '; } I ran into this because On Mac OS X, Postgres switches to the system's default locale, which is something that uses UTF-8 (e.g. en_US.UTF-8, fr_CA.UTF-8, etc). In this case, isspace() returns true for Unicode white-space values, which includes 0x85 = NEL = Next Line, and 0xA0 = NBSP = No-Break Space. This caused a bug in parsing Postgres Hstore values that use Unicode. I have attempted to submit a patch to fix this (mailing list post, commitfest entry). For a program to demonstrate the behaviour on different systems, see isspace_locale on Github.

## Get access to string resources in UiAutomator

DevFeed: [Get access to string resources in UiAutomator](<https://devfeed.tech/articles/get-access-to-string-resources-in-uiautomator-24845.md>)

Original publisher: [Read original article](<https://alexzh.com/get-access-to-string-resources-in-uiautomator/>)

Author: Alex Zhukovich

Published: 2023-03-24T17:21:14Z

Content type: tutorial

Language: en

Sources: [Alex Zhuk - Android development and testing](<https://devfeed.tech/sources/alex-zhuk-android-development-and-testing.md>)

Topics: [Localization (l10n)](<https://devfeed.tech/topics/localization.md>), [Accessibility](<https://devfeed.tech/topics/accessibility.md>), [maintenance](<https://devfeed.tech/topics/maintenance.md>), [Operating system](<https://devfeed.tech/topics/operating-system.md>)

Tags: [accessibility](<https://devfeed.tech/tags/accessibility.md>), [article](<https://devfeed.tech/tags/article.md>), [compilation](<https://devfeed.tech/tags/compilation.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [locale](<https://devfeed.tech/tags/locale.md>), [maintenance](<https://devfeed.tech/tags/maintenance.md>), [os](<https://devfeed.tech/tags/os.md>), [ui-testing](<https://devfeed.tech/tags/ui-testing.md>), [uiautomator](<https://devfeed.tech/tags/uiautomator.md>)

### AI overview

This tutorial explains how to access application string resources from UiAutomator test cases. It presents an approach using application context and resource identifiers so tests can reuse localized strings instead of hard-coded values.

### Source excerpt

This article explains how to access string resources in UiAutomator test cases.

## Android Native Text

DevFeed: [Android Native Text](<https://devfeed.tech/articles/android-native-text-26137.md>)

Original publisher: [Read original article](<https://vadzimv.dev/2021/10/01/android-native-text.html>)

Author: Vadzimv Dev Blog

Published: 2021-10-01T09:00:00Z

Content type: tutorial

Language: en

Sources: [vadzimv Dev Blog](<https://devfeed.tech/sources/vadzimv-dev-blog.md>)

Topics: [Android](<https://devfeed.tech/topics/android.md>), [unit test](<https://devfeed.tech/topics/unit-test.md>), [Localization (l10n)](<https://devfeed.tech/topics/localization.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [locale](<https://devfeed.tech/tags/locale.md>), [testing](<https://devfeed.tech/tags/testing.md>), [unit-testing](<https://devfeed.tech/tags/unit-testing.md>)

### AI overview

This tutorial explains how to handle Android string and plural resources in view models while avoiding stale text after configuration or language changes. It recommends storing resource IDs and arguments in view models, resolving localized text in the UI, and unit-testing the resulting parameters without directly interacting with the Android framework.

### Source excerpt

How to use Android String and Plurals resources in a View Model + Unit testing them.

## Using M and L Patterns in Java SimpleDateFormat

DevFeed: [Using M and L Patterns in Java SimpleDateFormat](<https://devfeed.tech/articles/simmmmplllledateformat-38617.md>)

Original publisher: [Read original article](<https://krossovochkin.com/posts/2019_07_21_simmmmplllledateformat/>)

Published: 2019-07-21T00:00:00Z

Content type: tutorial

Language: en

Sources: [Vasya Drobushkov](<https://devfeed.tech/sources/vasya-drobushkov.md>)

Topics: [Java](<https://devfeed.tech/topics/java.md>), [Java 8](<https://devfeed.tech/topics/java-8.md>), [Android](<https://devfeed.tech/topics/android.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [format](<https://devfeed.tech/tags/format.md>), [formatting](<https://devfeed.tech/tags/formatting.md>), [java](<https://devfeed.tech/tags/java.md>), [java-8](<https://devfeed.tech/tags/java-8.md>), [locale](<https://devfeed.tech/tags/locale.md>)

### AI overview

This article explains the difference between the M and L pattern letters in Java SimpleDateFormat. It shows that they can produce the same results in English and German but differ in Russian, where M is used for dates with contextual month names and L for standalone month names.

### Source excerpt

Introduction Using SimpleDateFormat to format dates and times is a common thing (as Java 8 Time API is not that available on Android yet). Usually it looks like: val formatter = SimpleDateFormat("dd MMMM yyyy", Locale.ENGLISH) formatter.format(date) We can use different formats and locales with not only providing correct translations, but also some additional locale-specific formatting rules. One tricky thing about SimpleDateFormat formats is why we have M and L when they look identical?

## PostgreSQL Domain Integrity In Depth

DevFeed: [PostgreSQL Domain Integrity In Depth](<https://devfeed.tech/articles/postgresql-domain-integrity-in-depth-21478.md>)

Original publisher: [Read original article](<https://begriffs.com/posts/2017-10-21-sql-domain-integrity.html>)

Published: 2017-10-21T00:00:00Z

Content type: article

Language: en

Sources: [Joe Nelson](<https://devfeed.tech/sources/joe-nelson.md>)

Topics: [PostgreSQL](<https://devfeed.tech/topics/postgresql.md>), [SQL](<https://devfeed.tech/topics/sql.md>), [data](<https://devfeed.tech/topics/data.md>), [configuration](<https://devfeed.tech/topics/configuration.md>)

Tags: [article](<https://devfeed.tech/tags/article.md>), [data](<https://devfeed.tech/tags/data.md>), [errors](<https://devfeed.tech/tags/errors.md>), [floating-point](<https://devfeed.tech/tags/floating-point.md>), [locale](<https://devfeed.tech/tags/locale.md>), [postgresql](<https://devfeed.tech/tags/postgresql.md>), [precision](<https://devfeed.tech/tags/precision.md>), [sql](<https://devfeed.tech/tags/sql.md>), [techniques](<https://devfeed.tech/tags/techniques.md>), [types](<https://devfeed.tech/tags/types.md>), [us](<https://devfeed.tech/tags/us.md>)

### AI overview

An in-depth guide to SQL domain integrity, centered on PostgreSQL. It explains how column types and custom domains restrict values, prevent input errors, and improve data consistency, with practical examples involving fixed-precision monetary values and gas prices.

### Source excerpt

2017-10-21 SQL has many features to protect data, and domain integrity constraints are one of the most fundamental. Put simply, they restrict columns to sensible values and prevent data input errors and other problems. On the surface domain integrity is simpler than other techniques such as referential integrity. Domains usually don't need to cross-reference values in multiple tables. However in this article we'll see some advanced tricks to keep data squeaky clean.

## Learning Angular: Set your language culture before any UI is displayed

DevFeed: [Learning Angular: Set your language culture before any UI is displayed](<https://devfeed.tech/articles/learning-angular-set-your-language-culture-before-any-ui-is-displayed-21239.md>)

Original publisher: [Read original article](<https://juri.dev/blog/2015/03/learning-ng-angular-translate-promises/>)

Published: 2015-03-02T00:00:00Z

Content type: tutorial

Language: en

Sources: [Juri Strumpflohner](<https://devfeed.tech/sources/juri-strumpflohner.md>)

Topics: [Angular](<https://devfeed.tech/topics/angular.md>), [Internationalization (i18n)](<https://devfeed.tech/topics/i18n.md>), [Localization (l10n)](<https://devfeed.tech/topics/localization.md>), [Promise](<https://devfeed.tech/topics/promise.md>), [API](<https://devfeed.tech/topics/api.md>)

Tags: [angular](<https://devfeed.tech/tags/angular.md>), [api](<https://devfeed.tech/tags/api.md>), [backend](<https://devfeed.tech/tags/backend.md>), [code](<https://devfeed.tech/tags/code.md>), [language](<https://devfeed.tech/tags/language.md>), [locale](<https://devfeed.tech/tags/locale.md>), [ui](<https://devfeed.tech/tags/ui.md>)

### AI overview

This tutorial explains how to set a user's language and load angular-translate locale files before Angular renders the UI. It uses a client-side route's resolve function, which returns a promise, to prevent flickering and incorrect localized data, and notes that backend calls should be cached.

### Source excerpt

Lorem ipsum dolor sit amet