Readonly[toReadonlysizeStatic Readonly[species]Locale and formatting metadata for this resource.
Replaces the resource's locale and formatting metadata.
Notes attached to this resource for translators and tooling.
Title that identifies this resource within a project.
Sets the title that identifies this resource within a project.
Returns an iterable of entries in the map.
Adds a message to this resource, merging resource attributes with any overrides.
Optionalattributes: MsgAttributesOptionalnotes: MsgNote[]This resource, for chaining.
true if an element in the Map existed and has been removed, or false if the element does not exist.
Returns an iterable of key, value pairs for every entry in the map.
Executes a provided function once per each key/value pair in the Map, in insertion order.
OptionalthisArg: anyReturns a specified element from the Map object. If the value that is associated to the provided key is an object, then you will get a reference to that object and any change made to that object will effectively modify it inside the Map.
Returns the element associated with the specified key. If no element is associated with the specified key, undefined is returned.
Returns a plain data object for this resource and its messages.
Attributes that match the resource or project defaults are omitted where possible to keep the output compact.
When true, notes are omitted from the result.
Returns the project this resource belongs to.
Loads and applies translations for a locale via the project loader.
When lang is the project's pseudo-locale, returns a pseudo-localized
copy without calling the loader.
boolean indicating whether an element with the specified key exists or not.
Returns an iterable of keys in the map
Adds a new element with a specified key and value to the Map. If an element with the same key already exists, the element will be updated.
Serializes this resource to a formatted JSON string.
When true, notes are omitted from the serialized data.
Builds a translated copy of this resource from translation data.
Messages present in the translation replace the source; missing keys keep the source message. Notes are carried over from the source.
Returns an iterable of values in the map
StaticcreateBuilds a resource from MsgResourceData and an owning project.
When messages is provided, each entry is added to the resource.
When omitted, the resource starts empty.
Staticgroup
A named collection of messages belonging to a MsgProject.
Resources inherit format defaults from their project, support translation loading (including pseudo-localization), and can serialize to plain data.