LocaleStation’s Deprecation
LocaleStation was released as part of the ongoing effort back in June 2025 to give all our libraries a chance to be translatable to your native language. This kind of effort was studied under the assumption that we’d achieve simpler and faster localization. However, our expectations fell short when we had discovered the massive first startup performance impact on Windows systems.
This performance impact was especially noticeable on Windows systems where applications like Nitrocid would suffer from longer startup times in both the main application entry point and the addon loading point. This slow down is considered to be unacceptable, especially when an “unrelated” feature would cause this slow down. This is because of the Windows Defender’s Antimalware Service Executable process taking up a majority of the CPU cycles in analyzing the localization files in the first JIT compilation of all libraries and applications that depend on LocaleStation’s generated files.
As a result, we’ve decided to shut down LocaleStation as a library, and convert all the existing JSON files, with appropriate modifications, to a standard culture-specific resources file that is managed by .NET.
With Terminaux, we’ve conducted an experimental branch based on the Terminaux 8.0.0 branch that can be found in the x/exp/v8.0.x-loc-resx-poc branch. We’ve used an internal program that converts LocaleStation-compatible JSON files that you can see like below:
{ "lang": "eng", "name": "English", "cultures": [ "en-US", "en-GB" ], "locs": [ { "loc": "TEXT_HELLO_WORLD", "text": "Hello world!" }, { "loc": "TEXT_HI", "text": "Hi!" } ]}
…to the .resx format as in below:
<?xml version="1.0" encoding="utf-8"?><root> <!-- Microsoft ResX Schema Version 2.0 The primary goals of this format is to allow a simple XML format that is mostly human readable. The generation and parsing of the various data types are done through the TypeConverter classes associated with the data types. Example: ... ado.net/XML headers & schema ... <resheader name="resmimetype">text/microsoft-resx</resheader> <resheader name="version">2.0</resheader> <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> <value>[base64 mime encoded serialized .NET Framework object]</value> </data> <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> <comment>This is a comment</comment> </data> There are any number of "resheader" rows that contain simple name/value pairs. Each data row contains a name, and value. The row also contains a type or mimetype. Type corresponds to a .NET class that support text/value conversion through the TypeConverter architecture. Classes that don't support this are serialized and stored with the mimetype set. The mimetype is used for serialized objects, and tells the ResXResourceReader how to depersist the object. This is currently not extensible. For a given mimetype the value must be set accordingly: Note - application/x-microsoft.net.object.binary.base64 is the format that the ResXResourceWriter will generate, however the reader can read any of the formats listed below. mimetype: application/x-microsoft.net.object.binary.base64 value : The object must be serialized with : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter : and then encoded with base64 encoding. mimetype: application/x-microsoft.net.object.soap.base64 value : The object must be serialized with : System.Runtime.Serialization.Formatters.Soap.SoapFormatter : and then encoded with base64 encoding. mimetype: application/x-microsoft.net.object.bytearray.base64 value : The object must be serialized into a byte array : using a System.ComponentModel.TypeConverter : and then encoded with base64 encoding. --> <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> <xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> <xsd:element name="root" msdata:IsDataSet="true"> <xsd:complexType> <xsd:choice maxOccurs="unbounded"> <xsd:element name="metadata"> <xsd:complexType> <xsd:sequence> <xsd:element name="value" type="xsd:string" minOccurs="0" /> </xsd:sequence> <xsd:attribute name="name" use="required" type="xsd:string" /> <xsd:attribute name="type" type="xsd:string" /> <xsd:attribute name="mimetype" type="xsd:string" /> <xsd:attribute ref="xml:space" /> </xsd:complexType> </xsd:element> <xsd:element name="assembly"> <xsd:complexType> <xsd:attribute name="alias" type="xsd:string" /> <xsd:attribute name="name" type="xsd:string" /> </xsd:complexType> </xsd:element> <xsd:element name="data"> <xsd:complexType> <xsd:sequence> <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> </xsd:sequence> <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> <xsd:attribute ref="xml:space" /> </xsd:complexType> </xsd:element> <xsd:element name="resheader"> <xsd:complexType> <xsd:sequence> <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> </xsd:sequence> <xsd:attribute name="name" type="xsd:string" use="required" /> </xsd:complexType> </xsd:element> </xsd:choice> </xsd:complexType> </xsd:element> </xsd:schema> <resheader name="resmimetype"> <value>text/microsoft-resx</value> </resheader> <resheader name="version"> <value>2.0</value> </resheader> <resheader name="reader"> <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> </resheader> <resheader name="writer"> <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> </resheader> <data name="NKS_COMMON_ANYKEY" xml:space="preserve"> <value>Press any key to continue...</value> </data> <data name="NKS_KERNEL_NOAPMSIMULATION" xml:space="preserve"> <value>It's now safe to turn off your computer.</value> </data> <data name="NKS_KERNEL_ENVERROR" xml:space="preserve"> <value>Kernel environment error:</value> </data> <data name="NKS_KERNEL_FATALERROR" xml:space="preserve"> <value>Nitrocid KS has detected a problem and it has been shut down.</value> </data> <data name="NKS_KERNEL_STARTING_DEVMESSAGE" xml:space="preserve"> <value>You're running the development version of the kernel. While you can experience upcoming features which may exist in the final release, you may run into bugs, instabilities, or even data loss. We recommend using the stable version, if possible.</value> </data> <data name="NKS_KERNEL_STARTING_RCMESSAGE" xml:space="preserve"> <value>You're running the release candidate version of the kernel. While you can experience the final touches, you may run into bugs, instabilities, or even data loss. We recommend using the stable version, if possible.</value> </data> <data name="NKS_KERNEL_STARTING_UNSUPPORTED" xml:space="preserve"> <value>We recommend against running this version of the kernel, because it is unsupported. If you have downloaded this kernel from unknown sources, this message may appear. Please download from our official downloads page.</value> </data> <data name="NKS_KERNEL_STARTING_ALPHAMESSAGE" xml:space="preserve"> <value>You're running the alpha version of the kernel. You may run into bugs, instabilities, or even data loss. We recommend using the stable version, if possible.</value> </data> <data name="NKS_KERNEL_STARTING_BETAMESSAGE" xml:space="preserve"> <value>You're running the beta version of the kernel. You may run into bugs, instabilities, or even data loss. We recommend using the stable version, if possible.</value> </data></root>
Our recent experiments proved that the resources method was faster than the LocaleStation method when it comes to first startup times due to Windows Defender. We have removed this library from the list of supported libraries, and that all development of LocaleStation will stop.
The specification will remain maintained, and the Aptivi Development Toolkit (ADT) will provide tools that we’ve developed internally to make dealing with those files easier than before.
We are still working on the rollout of the .resx file for all libraries, and this may take multiple library releases, depending on the severity of the situation.
#C_ #csharp #dotnet #Language #libraries #Library #Localization #news #Tech #Technology #update