diff --git a/src/app/app.ts b/src/app/app.ts
index 8ff6a9e..5289b53 100644
--- a/src/app/app.ts
+++ b/src/app/app.ts
@@ -188,6 +188,7 @@ export class AppComponent {
console.log('INITIALIZE IS RUNNING....');
// this.translate.addLangs(['ar', 'el', 'en', 'fa', 'fr', 'he', 'no', 'ru']);
+ // availible language translations
this.translate.addLangs(['en', 'no', 'ru']);
this.translate.setDefaultLang('en');
diff --git a/src/app/notifications/notifications.html b/src/app/notifications/notifications.html
index f83bc16..57742ed 100644
--- a/src/app/notifications/notifications.html
+++ b/src/app/notifications/notifications.html
@@ -3,12 +3,12 @@
- Options
+ {{ 'Notifications.Options' | translate}}
- Reset Notifications
+ {{'Notifications.ResetNotifications' | translate}}
@@ -26,6 +26,6 @@
- Show more...
+ {{'Notifications.ShowMore' | translate }}
diff --git a/src/app/people/people.html b/src/app/people/people.html
index 51bcc02..e5ad63f 100644
--- a/src/app/people/people.html
+++ b/src/app/people/people.html
@@ -11,7 +11,7 @@
- Options
+ {{ 'People.Options' | translate }}
@@ -22,37 +22,37 @@
-->
- Show
+ {{ 'People.Show' | translate }}
- Following
- Muted
- Blocked
- Cached
+ {{ 'People.Following' | translate }}
+ {{ 'People.Muted' | translate }}
+ {{ 'People.Blocked' | translate }}
+ {{ 'People.Cached' | translate }}
- Sorting
+ {{ 'People.Sorting' | translate }}
- Name (A-Z)
- Name (Z-A)
- Followed (Newest)
- Followed (Oldest)
- Updated (Newest)
- Updated (Oldest)
+ {{ 'People.NameAZ' | translate }}
+ {{ 'People.NameZA' | translate }}
+ {{ 'People.FollowedNewest' | translate }}
+ {{ 'People.FollowedOldest' | translate }}
+ {{ 'People.UpdatedNewest' | translate }}
+ {{ 'People.UpdatedOldest' | translate }}
- View
+ {{ 'People.View' | translate }}
- Large icons
- Medium icons
- Small icons
+ {{ 'People.LargeIcons' | translate }}
+ {{ 'People.MediumIcons' | translate }}
+ {{ 'People.SmallIcons' | translate }}
- Details
- Tiles
- Content
+ {{ 'People.Details' | translate }}
+ {{ 'People.Tiles' | translate }}
+ {{ 'People.Content' | translate }}
@@ -61,8 +61,8 @@
- Publish Follow (and Relays) List
- Save Public Following (backup)
+ {{ 'People.PublishFollowList' | translate }}
+ {{ 'People.SavePublicFollowing' | translate }}
@@ -77,7 +77,7 @@
diff --git a/src/app/profile/profile.html b/src/app/profile/profile.html
index 03d908b..2af5079 100644
--- a/src/app/profile/profile.html
+++ b/src/app/profile/profile.html
@@ -5,13 +5,13 @@
- Pick Profile Image
+ {{ 'Profile.PickProfileImage' | translate }}
- Pick Profile Banner
+ {{ 'Profile.PickProfileBanner' | translate }}
@@ -20,21 +20,21 @@
badge
- Display Name
+ {{ 'Profile.DisplayName' | translate }}
alternate_email
- Nickname
+ {{ 'Profile.Nickname' | translate }}
help_outline
- About
+ {{ 'Profile.About' | translate }}
@@ -59,28 +59,28 @@
how_to_reg
- E-mail/Domain Identifier (NIP05)
+ {{ 'Profile.MailDomainIdentifier' | translate }}
public
- Website
+ {{ 'Profile.Website' | translate }}
currency_bitcoin
- Bitcoin Payment Link (LUD06)
+ {{ 'Profile.BitcoinPaymentLink' | translate }}
currency_bitcoin
- Bitcoin Payment Alias (LUD16)
+ {{ 'Profile.BitoinPaymenAlias' | translate }}
@@ -91,11 +91,11 @@
-->
- Last updated: {{ profile.created_at | ago }}
+ {{ 'Profile.LastUpdated' | translate }}: {{ profile.created_at | ago }}
- Cancel
- Save
+ {{ 'Profile.Cancel' | translate }}
+ {{ 'Profile.Save' | translate }}
diff --git a/src/app/relays/relays.html b/src/app/relays/relays.html
index e30c28e..675fe74 100644
--- a/src/app/relays/relays.html
+++ b/src/app/relays/relays.html
@@ -3,18 +3,18 @@
- Options
+ {{'Relays.Options' | translate}}
- Append from extension Append from app
+ {{'Relays.AppendFromExtension' | translate }} {{ 'Relays.AppendFromApp' | translate }}
- Publish relay (and following) list Publish relay (NIP-65) list {{ 'Relays.PublishRelay(and following)list' | translate}} {{'Relays.PublishRelay(NIP-65)list' | translate}}
- Delete all relays
+ {{'Relays.DeleteAllRelays' | translate}}
diff --git a/src/app/settings/settings.html b/src/app/settings/settings.html
index 6a69874..9ab63b2 100644
--- a/src/app/settings/settings.html
+++ b/src/app/settings/settings.html
@@ -21,7 +21,7 @@
settings_applications
- Options
+ {{ 'Settings.Options' | translate }}
@@ -53,8 +53,8 @@
- Media Upload Service
- Choose which service to use for uploading photos and films
+ {{ 'Settings.MediaTitle' | translate }}
+ {{ 'Settings.MediaSubtitle' | translate }}
@@ -82,12 +82,12 @@
- Reactions
- Control if likes should be loaded and displayed
+ {{ 'Settings.Reactions' | translate }}
+ {{ 'Settings.ReactionsSubtitle' | translate }}
- Reactions is not for everyone and it might consider clutter by some. It also takes up additional bandwidth to download.
- Enable Reactions
+ {{'Settings.ReactionsNote' | translate }}
+ {{ 'Settings.EnableReactions' | translate }}
@@ -95,11 +95,11 @@
- Zapping
- Control if zapping features should be enabled
+ {{ 'Settings.Zapping' | translate }}
+ {{ 'Settings.ZappingSubtitle' | translate }}
- Enable Zapping
+ {{ 'Settings.EnableZapping' | translate }}
@@ -107,14 +107,14 @@
- Media widgets
- Control how content are rendered
+ {{ 'Settings.MediaWidgets' | translate }}
+ {{ 'Settings.MediaWidgetsSubtitle' |translate }}
- Enable this to allow the app to render music widgets when URLs linked to the services is seen in notes.
- Enable Spotify
- Enable Tidal
- Open Media Player
+ {{ 'Settings.MediaWidgetsNote' | translate }}
+ {{ 'Settings.EnableSpotify' | translate }}
+ {{ 'Settings.EnableTidal' | translate }}
+ {{ 'Settings.OpenMediaPlayer' | translate }}
diff --git a/src/app/settings/settings.ts b/src/app/settings/settings.ts
index 9a495f6..1f171e7 100644
--- a/src/app/settings/settings.ts
+++ b/src/app/settings/settings.ts
@@ -196,6 +196,8 @@ export class SettingsComponent {
this.appState.documentDirection = 'ltr';
this.optionsService.values.dir = 'ltr';
}
+
+ this.optionsService.save();
}
async exportPrivateKey() {
diff --git a/src/app/shared/add-relay-dialog/add-relay-dialog.html b/src/app/shared/add-relay-dialog/add-relay-dialog.html
index b241b51..2eb883c 100644
--- a/src/app/shared/add-relay-dialog/add-relay-dialog.html
+++ b/src/app/shared/add-relay-dialog/add-relay-dialog.html
@@ -1,5 +1,5 @@
-
Add a relay
+
{{ 'RelayDialog.AddARelay' | translate }}
dns
@@ -7,12 +7,12 @@
- Read
- Write
+ {{ 'RelayDialog.Read' | translate }}
+ {{ 'RelayDialog.Write' | translate }}
- Cancel
- Add
+ {{ 'RelayDialog.Cancel' | translate }}
+ {{ 'RelayDialog.Add' | translate }}
diff --git a/src/app/shared/relay/relay.html b/src/app/shared/relay/relay.html
index 2eb4085..308061a 100644
--- a/src/app/shared/relay/relay.html
+++ b/src/app/shared/relay/relay.html
@@ -29,21 +29,21 @@
{{ relay.nip11?.name }}
{{ relay.nip11.description }}
- Administrator
- Contact: {{ relay.nip11.contact }}
+ {{ 'Relay.Administrator' | translate }}
+ {{ 'Relay.Contact' | translate }}: {{ relay.nip11.contact }}
NIPs: {{ relay.nip11.supported_nips }}
- Software: {{ relay.nip11.software }} ({{ relay.nip11.version }})
+ {{'Relay.Software' | translate}}: {{ relay.nip11.software }} ({{ relay.nip11.version }})
ID: {{ relay.nip11.pubkey }}
- Timeouts: {{ relay.timeouts }}
- Events: {{ relay.eventcount }}
+ {{ 'Relay.Timeouts' | translate }} {{ relay.timeouts }}
+ {{ 'Relay.Events'| translate }}: {{ relay.eventcount }}
Status: {{ relay.status }}
- Relay Options
+ {{ 'Relay.RelayOptions' | translate }}
@@ -65,8 +65,8 @@
- Relay Status
- Allows you to disable a relay locally.
+ {{ 'Relay.RelayStatus' | translate }}
+ {{'Relay.RelayStatus.Subtitle' | translate}}
@@ -81,7 +81,7 @@
- Relay Privacy
+ {{ 'Relay.RelayPrivacy' | translate }}
@@ -95,8 +95,8 @@
- Primary Relay
- Delete
+ {{'Relay.PrimaryRelay' | translate }}
+ {{'Relay.Delete' | translate}}
diff --git a/src/assets/i18n/en.json b/src/assets/i18n/en.json
index 6e7d545..d9e23ba 100644
--- a/src/assets/i18n/en.json
+++ b/src/assets/i18n/en.json
@@ -12,6 +12,7 @@
"ConvertKey": "Convert Key"
},
"Settings": {
+ "Options": "Options",
"OptionsTitle": "App Options",
"OptionsDescription": "Choose important options for your user experience",
"Settings": "Settings",
@@ -19,6 +20,92 @@
"DisplayLanguage": "Display Language",
"ChooseMode": "Choose your mode",
"Dark": "Dark",
- "Light": "Light"
+ "Light": "Light",
+ "MediaTitle": "Media Upload Service",
+ "MediaSubtitle": "Choose which service to use for uploading photos and films",
+ "Reactions": "Reactions",
+ "ReactionsSubtitle": "Control if likes should be loaded and displayed",
+ "ReactionsNote": "Reactions is not for everyone and it might consider clutter by some. It also takes up additional bandwidth to download.",
+ "EnableReactions": "Enable Reactions",
+ "Zapping": "Zapping",
+ "ZappingSubtitle": "Control if zapping features should be enabled",
+ "EnableZapping": "Enable Zapping",
+ "MediaWidgets": "Media widgets",
+ "MediaWidgetsSubtitle": "Control how content are rendered",
+ "MediaWidgetsNote": "Enable this to allow the app to render music widgets when URLs linked to the services is seen in notes.",
+ "EnableSpotify": "Enable Spotify",
+ "EnableTidal": "Enable Tidal",
+ "OpenMediaPlayer": "Open Media Player"
+ },
+ "Notifications": {
+ "Options": "Options",
+ "ResetNotifications": "Reset Notifications",
+ "ShowMore": "Show More..."
+ },
+ "People": {
+ "Options": "Options",
+ "Show": "Show",
+ "Following": "Following",
+ "Muted": "Muted",
+ "Blocked": "Blocked",
+ "Cached": "Cached",
+ "Sorting": "Sorting",
+ "NameAZ": "Name (A-Z)",
+ "NameZA": "Name (Z-A)",
+ "FollowedNewest": "Followed (Newest)",
+ "FollowedOldest": "Followed (Oldest)",
+ "UpdatedNewest": "Updated (Newest)",
+ "UpdatedOldest": "Updated (Oldest)",
+ "LargeIcons": "Large icons",
+ "MediumIcons": "Medium icons",
+ "SmallIcons": "Small icons",
+ "Details": "Details",
+ "Tiles": "Tiles",
+ "Content": "Content",
+ "PublishFollowList": "Publish Follow (and Relays) List",
+ "SavePublicFollowing": "Save Public Following (backup)",
+ "Followed": "Followed"
+ },
+ "Profile": {
+ "PickProfileImage": "Pick Profile Image",
+ "PickProfileBanner": "Pick Profile Banner",
+ "DisplayName": "Display Name",
+ "Nickname": "Nickname",
+ "About": "About",
+ "MailDomainIdentifier": "E-mail/Domain Identifier (NIP05)",
+ "Website": "Website",
+ "BitcoinPaymentLink": "Bitcoin Payment Link (LUD06)",
+ "BitoinPaymenAlias": "Bitcoin Payment Alias (LUD16)",
+ "LastUpdated": "Last updated",
+ "Cancel": "Cancel",
+ "Save": "Save"
+ },
+ "Relays": {
+ "Options": "Options",
+ "AppendFromExtension": "Append from extension",
+ "AppendFromApp": "Append from app",
+ "PublishRelay(and following)list": "Publish relay (and following) list",
+ "PublishRelay(NIP-65)list": "Publish relay (NIP-65) list",
+ "DeleteAllRelays": "Delete All Relays"
+ },
+ "RelayDialog": {
+ "AddARelay": "Add a relay",
+ "Read": "Read",
+ "Write": "Write",
+ "Cancel": "Cancel",
+ "Add": "Add"
+ },
+ "Relay": {
+ "Administrator": "Administrator",
+ "Contact": "Contact",
+ "Software": "Software",
+ "Timeouts": "Timeouts",
+ "Events": "Events",
+ "RelayOptions": "Relay Options",
+ "RelayStatus": "Relay Status",
+ "RelayStatusSubtitle": "Allows you to disable a relay locally.",
+ "RelayPrivacy": "Relay Privacy",
+ "PrimaryRelay": "Primary Relay",
+ "Delete": "Delete"
}
}
diff --git a/src/assets/i18n/no.json b/src/assets/i18n/no.json
index ea3f4a6..7ac34b1 100644
--- a/src/assets/i18n/no.json
+++ b/src/assets/i18n/no.json
@@ -19,6 +19,85 @@
"DisplayLanguage": "Velg språk",
"ChooseMode": "Velg fargetema",
"Dark": "Mørk",
- "Light": "Lys"
+ "Light": "Lys",
+ "MediaTitle": "Media Upload Service",
+ "MediaSubtitle": "Choose which service to use for uploading photos and films",
+ "Reactions": "Reactions",
+ "ReactionsSubtitle": "Control if likes should be loaded and displayed",
+ "ReactionsNote": "Reactions is not for everyone and it might consider clutter by some. It also takes up additional bandwidth to download.",
+ "EnableReactions": "Enable Reactions",
+ "Zapping": "Zapping",
+ "ZappingSubtitle": "Control if zapping features should be enabled",
+ "EnableZapping": "Enable Zapping",
+ "MediaWidgets": "Media widgets",
+ "MediaWidgetsSubtitle": "Control how content are rendered",
+ "MediaWidgetsNote": "Enable this to allow the app to render music widgets when URLs linked to the services is seen in notes.",
+ "EnableSpotify": "Enable Spotify",
+ "EnableTidal": "Enable Tidal",
+ "OpenMediaPlayer": "Open Media Player"
+ },
+ "Notifications": {
+ "Options": "Alternativ",
+ "ResetNotifications": "Tilbakestill varsler",
+ "ShowMore": "Vis flere..."
+ },
+ "People": {
+ "Options": "Options",
+ "Show": "Show",
+ "Following": "Following",
+ "Muted": "Muted",
+ "Blocked": "Blocked",
+ "Cached": "Cached",
+ "Sorting": "Sorting",
+ "NameAZ": "Name (A-Z)",
+ "NameZA": "Name (Z-A)",
+ "FollowedNewest": "Followed (Newest)",
+ "FollowedOldest": "Followed (Oldest)",
+ "UpdatedNewest": "Updated (Newest)",
+ "UpdatedOldest": "Updated (Oldest)",
+ "LargeIcons": "Large icons",
+ "MediumIcons": "Medium icons",
+ "SmallIcons": "Small icons",
+ "Details": "Details",
+ "Tiles": "Tiles",
+ "Content": "Content",
+ "PublishFollowList": "Publish Follow (and Relays) List",
+ "SavePublicFollowing": "Save Public Following (backup)",
+ "Followed": "Followed"
+ },
+ "Profile": {
+ "PickProfileImage": "Pick Profile Image",
+ "PickProfileBanner": "Pick Profile Banner",
+ "DisplayName": "Display Name",
+ "Nickname": "Nickname",
+ "About": "About",
+ "MailDomainIdentifier": "E-mail/Domain Identifier (NIP05)",
+ "Website": "Website",
+ "BitcoinPaymentLink": "Bitcoin Payment Link (LUD06)",
+ "BitoinPaymenAlias": "Bitcoin Payment Alias (LUD16)",
+ "LastUpdated": "Last updated",
+ "Cancel": "Cancel",
+ "Save": "Save"
+ },
+ "Relays": {
+ "Options": "Alternativ",
+ "AppendFromExtension": "Legg til fra utvidelse",
+ "AppendFromApp": "Legg til fra app",
+ "PublishRelay(and following)list": "Publiser relay (og følgende) liste",
+ "PublishRelay(NIP-65)list": "Publiser relay (NIP-65) liste",
+ "DeleteAllRelays": "Slett alle relays"
+ },
+ "Relay": {
+ "Administrator": "Administrator",
+ "Contact": "Kontakt",
+ "Software": "Programvare",
+ "Timeouts": "Tidsavbrudd",
+ "Events": "Hendelser",
+ "RelayOptions": "Relay alternativ",
+ "RelayStatus": "Relay status",
+ "RelayStatusSubtitle": "Lar deg deaktivere en relay lokalt.",
+ "RelayPrivacy": "Relay personvern",
+ "PrimaryRelay": "Primær relay",
+ "Delete": "Slett"
}
}
diff --git a/src/assets/i18n/ru.json b/src/assets/i18n/ru.json
index d019015..d9e23ba 100644
--- a/src/assets/i18n/ru.json
+++ b/src/assets/i18n/ru.json
@@ -1,25 +1,111 @@
{
- "en": "English",
- "no": "Norsk",
- "fr": "French",
- "el": "Greek",
- "fa": "Persian",
- "ar": "Arabic",
- "he": "Hebrew",
- "ru": "Русский",
- "App": {
- "Hide": "Скрыть",
- "ConvertKey": "Преобразовать ключ"
- },
- "Settings": {
- "OptionsTitle": "Параметры приложения",
- "OptionsDescription": "Выберите важные параметры для вашего пользовательского интерфейса",
- "Settings": "Настройки",
- "Save": "Сохранить",
- "DisplayLanguage": "Язык отображения",
- "ChooseMode": "Выберите тему",
- "Dark": "Тёмная",
- "Light": "Светлая"
- }
+ "en": "English",
+ "no": "Norsk",
+ "fr": "French",
+ "el": "Greek",
+ "fa": "Persian",
+ "ar": "Arabic",
+ "he": "Hebrew",
+ "ru": "Русский",
+ "App": {
+ "Hide": "Hide",
+ "ConvertKey": "Convert Key"
+ },
+ "Settings": {
+ "Options": "Options",
+ "OptionsTitle": "App Options",
+ "OptionsDescription": "Choose important options for your user experience",
+ "Settings": "Settings",
+ "Save": "Save",
+ "DisplayLanguage": "Display Language",
+ "ChooseMode": "Choose your mode",
+ "Dark": "Dark",
+ "Light": "Light",
+ "MediaTitle": "Media Upload Service",
+ "MediaSubtitle": "Choose which service to use for uploading photos and films",
+ "Reactions": "Reactions",
+ "ReactionsSubtitle": "Control if likes should be loaded and displayed",
+ "ReactionsNote": "Reactions is not for everyone and it might consider clutter by some. It also takes up additional bandwidth to download.",
+ "EnableReactions": "Enable Reactions",
+ "Zapping": "Zapping",
+ "ZappingSubtitle": "Control if zapping features should be enabled",
+ "EnableZapping": "Enable Zapping",
+ "MediaWidgets": "Media widgets",
+ "MediaWidgetsSubtitle": "Control how content are rendered",
+ "MediaWidgetsNote": "Enable this to allow the app to render music widgets when URLs linked to the services is seen in notes.",
+ "EnableSpotify": "Enable Spotify",
+ "EnableTidal": "Enable Tidal",
+ "OpenMediaPlayer": "Open Media Player"
+ },
+ "Notifications": {
+ "Options": "Options",
+ "ResetNotifications": "Reset Notifications",
+ "ShowMore": "Show More..."
+ },
+ "People": {
+ "Options": "Options",
+ "Show": "Show",
+ "Following": "Following",
+ "Muted": "Muted",
+ "Blocked": "Blocked",
+ "Cached": "Cached",
+ "Sorting": "Sorting",
+ "NameAZ": "Name (A-Z)",
+ "NameZA": "Name (Z-A)",
+ "FollowedNewest": "Followed (Newest)",
+ "FollowedOldest": "Followed (Oldest)",
+ "UpdatedNewest": "Updated (Newest)",
+ "UpdatedOldest": "Updated (Oldest)",
+ "LargeIcons": "Large icons",
+ "MediumIcons": "Medium icons",
+ "SmallIcons": "Small icons",
+ "Details": "Details",
+ "Tiles": "Tiles",
+ "Content": "Content",
+ "PublishFollowList": "Publish Follow (and Relays) List",
+ "SavePublicFollowing": "Save Public Following (backup)",
+ "Followed": "Followed"
+ },
+ "Profile": {
+ "PickProfileImage": "Pick Profile Image",
+ "PickProfileBanner": "Pick Profile Banner",
+ "DisplayName": "Display Name",
+ "Nickname": "Nickname",
+ "About": "About",
+ "MailDomainIdentifier": "E-mail/Domain Identifier (NIP05)",
+ "Website": "Website",
+ "BitcoinPaymentLink": "Bitcoin Payment Link (LUD06)",
+ "BitoinPaymenAlias": "Bitcoin Payment Alias (LUD16)",
+ "LastUpdated": "Last updated",
+ "Cancel": "Cancel",
+ "Save": "Save"
+ },
+ "Relays": {
+ "Options": "Options",
+ "AppendFromExtension": "Append from extension",
+ "AppendFromApp": "Append from app",
+ "PublishRelay(and following)list": "Publish relay (and following) list",
+ "PublishRelay(NIP-65)list": "Publish relay (NIP-65) list",
+ "DeleteAllRelays": "Delete All Relays"
+ },
+ "RelayDialog": {
+ "AddARelay": "Add a relay",
+ "Read": "Read",
+ "Write": "Write",
+ "Cancel": "Cancel",
+ "Add": "Add"
+ },
+ "Relay": {
+ "Administrator": "Administrator",
+ "Contact": "Contact",
+ "Software": "Software",
+ "Timeouts": "Timeouts",
+ "Events": "Events",
+ "RelayOptions": "Relay Options",
+ "RelayStatus": "Relay Status",
+ "RelayStatusSubtitle": "Allows you to disable a relay locally.",
+ "RelayPrivacy": "Relay Privacy",
+ "PrimaryRelay": "Primary Relay",
+ "Delete": "Delete"
}
-
\ No newline at end of file
+}