UNPKG

@snups/rjsf-utils

Version:
85 lines 5.16 kB
/** An enumeration of all the translatable strings used by `@snups/rjsf-core` and its themes. The value of each of the * enumeration keys is expected to be the actual english string. Some strings contain replaceable parameter values * as indicated by `%1`, `%2`, etc. The number after the `%` indicates the order of the parameter. The ordering of * parameters is important because some languages may choose to put the second parameter before the first in its * translation. Also, some strings are rendered using `markdown-to-jsx` and thus support markdown and inline html. */ export var TranslatableString; (function (TranslatableString) { /** Fallback title of an array item, used by ArrayField */ TranslatableString["ArrayItemTitle"] = "Item"; /** Missing items reason, used by ArrayField */ TranslatableString["MissingItems"] = "Missing items definition"; /** Empty array message, used by ArrayField */ TranslatableString["EmptyArray"] = "No items yet. Use the button below to add some."; /** Yes label, used by BooleanField */ TranslatableString["YesLabel"] = "Yes"; /** No label, used by BooleanField */ TranslatableString["NoLabel"] = "No"; /** Close label, used by ErrorList */ TranslatableString["CloseLabel"] = "Close"; /** Errors label, used by ErrorList */ TranslatableString["ErrorsLabel"] = "Errors"; /** New additionalProperties string default value, used by ObjectField */ TranslatableString["NewStringDefault"] = "New Value"; /** Add button title, used by AddButton */ TranslatableString["AddButton"] = "Add"; /** Add button title, used by AddButton */ TranslatableString["AddItemButton"] = "Add Item"; /** Copy button title, used by IconButton */ TranslatableString["CopyButton"] = "Copy"; /** Move down button title, used by IconButton */ TranslatableString["MoveDownButton"] = "Move down"; /** Move up button title, used by IconButton */ TranslatableString["MoveUpButton"] = "Move up"; /** Remove button title, used by IconButton */ TranslatableString["RemoveButton"] = "Remove"; /** Now label, used by AltDateWidget */ TranslatableString["NowLabel"] = "Now"; /** Clear label, used by AltDateWidget */ TranslatableString["ClearLabel"] = "Clear"; /** Aria date label, used by DateWidget */ TranslatableString["AriaDateLabel"] = "Select a date"; /** File preview label, used by FileWidget */ TranslatableString["PreviewLabel"] = "Preview"; /** Decrement button aria label, used by UpDownWidget */ TranslatableString["DecrementAriaLabel"] = "Decrease value by 1"; /** Increment button aria label, used by UpDownWidget */ TranslatableString["IncrementAriaLabel"] = "Increase value by 1"; // Strings with replaceable parameters /** Unknown field type reason, where %1 will be replaced with the type as provided by SchemaField */ TranslatableString["UnknownFieldType"] = "Unknown field type %1"; /** Option prefix, where %1 will be replaced with the option index as provided by MultiSchemaField */ TranslatableString["OptionPrefix"] = "Option %1"; /** Option prefix, where %1 and %2 will be replaced by the schema title and option index, respectively as provided by * MultiSchemaField */ TranslatableString["TitleOptionPrefix"] = "%1 option %2"; /** Key label, where %1 will be replaced by the label as provided by WrapIfAdditionalTemplate */ TranslatableString["KeyLabel"] = "%1 Key"; // Strings with replaceable parameters AND/OR that support markdown and html /** Invalid object field configuration as provided by the ObjectField. * NOTE: Use markdown notation rather than html tags. */ TranslatableString["InvalidObjectField"] = "Invalid \"%1\" object field configuration: _%2_."; /** Unsupported field schema, used by UnsupportedField */ TranslatableString["UnsupportedField"] = "Unsupported field schema."; /** Unsupported field schema, where %1 will be replaced by the idSchema.$id as provided by UnsupportedField. * NOTE: Use markdown notation rather than html tags. */ TranslatableString["UnsupportedFieldWithId"] = "Unsupported field schema for field `%1`."; /** Unsupported field schema, where %1 will be replaced by the reason string as provided by UnsupportedField. * NOTE: Use markdown notation rather than html tags. */ TranslatableString["UnsupportedFieldWithReason"] = "Unsupported field schema: _%1_."; /** Unsupported field schema, where %1 and %2 will be replaced by the idSchema.$id and reason strings, respectively, * as provided by UnsupportedField. * NOTE: Use markdown notation rather than html tags. */ TranslatableString["UnsupportedFieldWithIdAndReason"] = "Unsupported field schema for field `%1`: _%2_."; /** File name, type and size info, where %1, %2 and %3 will be replaced by the file name, file type and file size as * provided by FileWidget */ TranslatableString["FilesInfo"] = "**%1** (%2, %3 bytes)"; })(TranslatableString || (TranslatableString = {})); //# sourceMappingURL=enums.js.map