web_lib

Common web application libraries
git clone https://radroots.dev/git/web_lib.git
Log | Files | Refs | LICENSE

commit 8a6b5ec83c395c63aec474adc42fa286d73f82a8
parent 7b2f4e957bf8688138dfab6f6016a07c3dfa0518
Author: triesap <137732411+triesap@users.noreply.github.com>
Date:   Fri,  4 Apr 2025 04:47:44 +0000

locales: add/edit `en` messages, add locales.json data file

Diffstat:
Dlocales/iso-639_1.json | 183-------------------------------------------------------------------------------
Alocales/src/data/locales.json | 4++++
Mlocales/src/index.ts | 7++++---
Mlocales/src/messages/en/common.json | 22+++++++++++++++++++++-
Alocales/src/messages/en/error.json | 35+++++++++++++++++++++++++++++++++++
Alocales/src/messages/en/icu.json | 14++++++++++++++
Alocales/src/messages/en/notification.json | 19+++++++++++++++++++
Mlocales/src/messages/en/units.json | 10+++++-----
8 files changed, 102 insertions(+), 192 deletions(-)

diff --git a/locales/iso-639_1.json b/locales/iso-639_1.json @@ -1,183 +0,0 @@ -{ - "ab": "Abkhaz", - "aa": "Afar", - "ae": "Avestan", - "af": "Afrikaans", - "ak": "Akan", - "am": "አማርኛ", - "ar": "العربية", - "as": "অসমীয়া", - "av": "Avar", - "ay": "Aymara", - "az": "Azərbaycanca", - "ba": "Bashkir", - "be": "Беларуская", - "bg": "Български", - "bh": "Bihari", - "bi": "Bislama", - "bm": "Bambara", - "bn": "বাংলা", - "bo": "བོད་སྐད", - "br": "Breton", - "bs": "Bosanski", - "ca": "Català", - "ce": "Chechen", - "ch": "Chamorro", - "co": "Corsu", - "cr": "Cree", - "cs": "Čeština", - "cu": "Church Slavonic", - "cv": "Chuvash", - "cy": "Cymraeg", - "da": "Dansk", - "de": "Deutsch", - "dv": "Divehi", - "dz": "Dzongkha", - "ee": "Ewe", - "el": "Ελληνικά", - "en": "English", - "eo": "Esperanto", - "es": "Español", - "et": "Eesti", - "eu": "Euskara", - "fa": "فارسی", - "ff": "Fula", - "fi": "Suomi", - "fj": "Fijian", - "fo": "Føroyskt", - "fr": "Français", - "fy": "Frysk", - "ga": "Gaeilge", - "gd": "Gàidhlig", - "gl": "Galego", - "gn": "Guarani", - "gu": "ગુજરાતી", - "gv": "Manx", - "ha": "Hausa", - "he": "עברית", - "hi": "हिन्दी", - "ho": "Hiri Motu", - "hr": "Hrvatski", - "ht": "Kreyòl Ayisyen", - "hu": "Magyar", - "hy": "Հայերեն", - "hz": "Herero", - "ia": "Interlingua", - "id": "Bahasa Indonesia", - "ie": "Interlingue", - "ig": "Igbo", - "ii": "Sichuan Yi", - "ik": "Inupiaq", - "io": "Ido", - "is": "Íslenska", - "it": "Italiano", - "iu": "Inuktitut", - "ja": "日本語", - "jv": "Jawa", - "ka": "ქართული", - "kbp": "Kabuverdianu", - "kk": "Қазақша", - "kl": "Kalaallisut", - "km": "ខ្មែរ", - "kn": "ಕನ್ನಡ", - "ko": "한국어", - "kr": "Kanuri", - "ks": "Kashmiri", - "ku": "Kurdî", - "kv": "Komi", - "kw": "Cornish", - "ky": "Кыргызча", - "la": "Latina", - "lb": "Lëtzebuergesch", - "lg": "Ganda", - "li": "Limburgish", - "ln": "Lingala", - "lo": "ລາວ", - "lt": "Lietuvių", - "lu": "Luba-Katanga", - "lv": "Latviešu", - "mg": "Malagasy", - "mh": "Marshallese", - "mi": "Māori", - "mk": "Македонски", - "ml": "മലയാളം", - "mn": "Монгол", - "mo": "Moldovan", - "mr": "मराठी", - "ms": "Malay", - "mt": "Maltese", - "my": "မြန်မာစာ", - "na": "Nauru", - "nb": "Norsk bokmål", - "nd": "North Ndebele", - "ne": "नेपाली", - "ng": "Ndonga", - "nl": "Nederlands", - "nn": "Norsk nynorsk", - "no": "Norsk", - "nr": "South Ndebele", - "nv": "Navajo", - "ny": "Chichewa", - "oc": "Occitan", - "oj": "Ojibwe", - "om": "Oromo", - "or": "ଓଡ଼ିଆ", - "os": "Ossetian", - "pa": "ਪੰਜਾਬੀ", - "pl": "Polski", - "ps": "Pashto", - "pt": "Português", - "qu": "Quechua", - "rm": "Romansh", - "rn": "Kirundi", - "ro": "Română", - "ru": "Русский", - "rw": "Kinyarwanda", - "sa": "संस्कृतम्", - "sc": "Sardinian", - "sd": "سنڌي", - "se": "Northern Sami", - "sg": "Sango", - "si": "සිංහල", - "sk": "Slovenčina", - "sl": "Slovenščina", - "sm": "Samoan", - "sn": "ChiShona", - "so": "Soomaaliga", - "sq": "Shqip", - "sr": "Српски", - "ss": "Swati", - "st": "Southern Sotho", - "su": "Basa Sunda", - "sv": "Svenska", - "sw": "Kiswahili", - "ta": "தமிழ்", - "te": "తెలుగు", - "tg": "Тоҷикӣ", - "th": "ไทย", - "ti": "Tigrinya", - "tk": "Türkmençe", - "tl": "Tagalog", - "tn": "Tswana", - "to": "Tongan", - "tr": "Türkçe", - "ts": "Tsonga", - "tt": "Tatar", - "tw": "Twi", - "ty": "Tahitian", - "ug": "ئۇيغۇرچە", - "uk": "Українська", - "ur": "اردو", - "uz": "O‘zbek", - "ve": "Venda", - "vi": "Tiếng Việt", - "vo": "Volapük", - "wa": "Walloon", - "wo": "Wolof", - "xh": "Xhosa", - "yi": "ייִדיש", - "yo": "Yorùbá", - "za": "Zhuang", - "zu": "isiZulu", - "zz": "Zazaki" -} diff --git a/locales/src/data/locales.json b/locales/src/data/locales.json @@ -0,0 +1,3 @@ +[ + "en" +] +\ No newline at end of file diff --git a/locales/src/index.ts b/locales/src/index.ts @@ -1,6 +1,6 @@ import iso3166_2 from "./data/iso3166_2.json"; import iso639_1 from "./data/iso639_1.json"; +import locales from "./data/locales.json"; -const locales = [`en`] as const; - -export { iso3166_2, iso639_1, locales }; +export const locales_default = [`en`] as const; +export { iso3166_2, iso639_1, locales }; +\ No newline at end of file diff --git a/locales/src/messages/en/common.json b/locales/src/messages/en/common.json @@ -1,4 +1,9 @@ { + "hide_alerts": "Hide alerts", + "keep_previous": "Keep previous", + "upload_photo": "Upload photo", + "followers": "Followers", + "following": "Following", "about_us": "About us", "accept": "Accept", "account_type": "Account type", @@ -6,12 +11,13 @@ "active": "Active", "add": "Add", "add_current_location": "Add current location", + "add_from_existing": "Add from existing", "add_map_location": "Add map location", "add_new": "Add new", "add_new_location": "Add new location", "agree": "Agree", "all_accounts": "All accounts", - "all_rights_reserved": "all rights reserved", + "all_rights_reserved": "All rights reserved", "area": "Area", "at": "At", "authenticated": "Authenticated", @@ -41,17 +47,22 @@ "connected": "Connected", "connection": "Connection", "contact": "Contact", + "contact_name": "Contact name", "continue": "Continue", "coordinates": "Coordinates", "country": "Country", + "create_product": "Create product", "current_location": "Current location", "dark": "Dark", "date_created": "Date created", "date_modified": "Date modified", + "default_relays": "Default relays", "delete": "Delete", + "describe_your_product": "Describe your product", "description": "Description", "details": "Details", "device": "Device", + "disable_uploads": "Disable uploads", "disagree": "Disagree", "disconnect": "Disconnect", "do_you_want_to_continue_q": "Do you want to continue?", @@ -65,7 +76,12 @@ "faq": "FAQ", "farm": "Farm", "farm_area": "Farm area", + "farm_contact": "Farm contact", "farm_land": "Farm land", + "farm_location": "Farm location", + "farm_name": "Farm name", + "farm_size": "Farm size", + "farms": "Farms", "file_name": "File name", "file_size": "File size", "filters": "Filters", @@ -77,6 +93,7 @@ "home": "Home", "inbox": "Inbox", "inflows": "Inflows", + "invalid_key": "Invalid key", "items": "Items", "key": "Key", "keypair": "Keypair", @@ -87,9 +104,11 @@ "light": "Light", "list": "List", "listing": "Listing", + "loading": "Loading", "location": "Location", "locations": "Locations", "log_in": "Log in", + "logout": "Logout", "longitude": "Longitude", "lot": "Lot", "lot_name": "Lot name", @@ -179,6 +198,7 @@ "view": "View", "wallet": "Wallet", "website": "Website", + "would_you_like_to_use_it_q": "Would you like to use it?", "year": "Year", "yes": "Yes", "your_email": "Your email", diff --git a/locales/src/messages/en/error.json b/locales/src/messages/en/error.json @@ -0,0 +1,34 @@ +{ + "client": { + "http": { + "request_failure": "There was a request failure" + }, + "geolocation": { + "location_unavailable": "The device location is unavailable", + "permission_denied": "The access device location was denied", + "request_failure": "The request could not be completed", + "timeout": "The request for your device location expired" + } + }, + "init": { + "configuration_failure": "There was an error configuring the device", + "device_configuration_nostr_profile": "There was an error while configuring your profile", + "device_configuration_nostr_relay": "There was an error while adding the nostr relay configuration" + }, + "nostr": { + "ndk_user_undefined": "There was an error configuring the nostr client", + "no_relays": "There are no relays connected" + }, + "radroots": { + "profile_registered": "This profile is already registered" + }, + "model": { + "filter_map_options_list_invalid": "", + "filter_map_query_values_invalid_condition": "", + "filter_map_query_values_undefined": "", + "filter_map_bind_values_undefined": "" + }, + "util": { + "parse_file_path_undefined": "There was an error reading the file path" + } +} +\ No newline at end of file diff --git a/locales/src/messages/en/icu.json b/locales/src/messages/en/icu.json @@ -0,0 +1,13 @@ +{ + "choose_*": "Choose {{value}}", + "add_*": "Add {{value}}", + "add_existing_*": "Add existing {{value}}", + "configure_*": "Configure {{value}}", + "create_new_*": "Create new {{value}}", + "enter_*": "Enter {{value}}", + "enter_a_*": "Enter a {{value}}", + "enter_a_valid_*": "Enter a valid {{value}}", + "failure_saving_*_to_the_database": "Failure saving {{value}} to the database", + "the_*_is_available": "The {{value}} is available", + "use_existing_*": "Use existing {{value}}" +} +\ No newline at end of file diff --git a/locales/src/messages/en/notification.json b/locales/src/messages/en/notification.json @@ -0,0 +1,18 @@ +{ + "device": { + "reset": "You are about to reset this device, which will erase all data including keys, profiles, and personal files", + "reset_complete": "The device has been reset" + }, + "init": { + "greeting_header": "Welcome to Radroots!", + "greeting_subheader": "Your device will be configured by the setup wizard", + "no_profile_option": "Your profile will be created without a name. You can change this later in Settings > Profile", + "on_complete": "Success. Your device was configured. To view or change your configuration go to Settings > Profile", + "on_first_load": "Notifications are enabled" + }, + "profile": { + "update_name_confirmation": "Updating your username will result in public links on your profile being updated", + "handle_back_with_selected_photo_no_existing": "Do you want to use this photo or leave the page?", + "handle_back_with_selected_photo": "Do you want to use this photo or keep your existing one?" + } +} +\ No newline at end of file diff --git a/locales/src/messages/en/units.json b/locales/src/messages/en/units.json @@ -3,11 +3,11 @@ "ac": "Acre", "ac_ab": "Ac.", "ft2": "Square foot", - "ft2_ab": "ft²", + "ft2_ab": "Sq. Ft.", "ha": "Hectare", "ha_ab": "Ha.", "m2": "Square metre", - "m2_ab": "m²" + "m2_ab": "Sq. M." }, "length": { "ft": "Foot", @@ -18,13 +18,13 @@ "mass": { "unit": { "g": "Gram", - "g_ab": "g.", + "g_ab": "G.", "g_pl": "Grams", "kg": "Kilogram", - "kg_ab": "kg.", + "kg_ab": "Kg.", "kg_pl": "Kilograms", "lb": "Pound", - "lb_ab": "lb.", + "lb_ab": "Lb.", "lb_pl": "Pounds" } }