Skip to content

Commit

Permalink
Implement feedback
Browse files Browse the repository at this point in the history
 - Update locale keys for all languages
 - Add pnpm command to update all language keys
  • Loading branch information
HeavenVolkoff committed May 9, 2024
1 parent 80355e1 commit 6451a78
Show file tree
Hide file tree
Showing 17 changed files with 64 additions and 29 deletions.
3 changes: 3 additions & 0 deletions .cspell/project_words.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ codegen
Condvar
dashmap
davidmytton
dayjs
deel
elon
encryptor
Expand Down Expand Up @@ -60,7 +61,9 @@ storedkey
stringly
thumbstrips
tobiaslutke
tokio
typecheck
uuid
vdfs
vijay
zacharysmith
Expand Down
11 changes: 1 addition & 10 deletions apps/mobile/src/components/modal/inspector/FileInfoModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import dayjs from 'dayjs';
import { Barcode, CaretLeft, Clock, Cube, Icon, SealCheck, Snowflake } from 'phosphor-react-native';
import { forwardRef } from 'react';
import { Pressable, Text, View } from 'react-native';
import { getItemFilePath, getItemObject, humanizeSize, type ExplorerItem } from '@sd/client';
import { getItemFilePath, humanizeSize, type ExplorerItem } from '@sd/client';
import FileThumb from '~/components/explorer/FileThumb';
import InfoTagPills from '~/components/explorer/sections/InfoTagPills';
import { Modal, ModalScrollView, type ModalRef } from '~/components/layout/Modal';
Expand Down Expand Up @@ -39,18 +39,9 @@ type FileInfoModalProps = {

const FileInfoModal = forwardRef<ModalRef, FileInfoModalProps>((props, ref) => {
const { data } = props;

const modalRef = useForwardedRef(ref);

const item = data?.item;

const objectData = data && getItemObject(data);
const filePathData = data && getItemFilePath(data);

// const fullObjectData = useLibraryQuery(['files.get', objectData?.id || -1], {
// enabled: objectData?.id !== undefined
// });

return (
<Modal
ref={modalRef}
Expand Down
17 changes: 3 additions & 14 deletions core/prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -245,20 +245,9 @@ model Object {
@@map("object")
}

// if there is a conflicting cas_id, the conficting file should be updated to have a larger cas_id as
//the field is unique, however this record is kept to tell the indexer (upon discovering this CAS) that
//there is alternate versions of the file and to check by a full integrity hash to define for which to associate with.
// @brendan: nah this probably won't fly
// model FileConflict {
// original_object_id Int @unique
// detactched_object_id Int @unique

// @@map("file_conflict")
// }

// keys allow us to know exactly which files can be decrypted with a given key
// they can be "mounted" to a client, and then used to decrypt files automatically
/// @shared(id: uuid)
// // keys allow us to know exactly which files can be decrypted with a given key
// // they can be "mounted" to a client, and then used to decrypt files automatically
// /// @shared(id: uuid)
// model Key {
// id Int @id @default(autoincrement())
// // uuid to identify the key
Expand Down
6 changes: 2 additions & 4 deletions interface/locales/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ const dayjsLocales: Record<string, any> = {

## Syncing locales

This command will help you sync locales with the source language (en) and find missing keys.
This command will help you sync all locales with the source language (en) and update missing keys.

`npx i18next-locales-sync -p en -s it -l ./interface/locales`

replace `it` with the language you want to sync with the source language.
`pnpm i18n:sync`
3 changes: 3 additions & 0 deletions interface/locales/ar/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
"changelog": "سجل التغييرات",
"changelog_page_description": "انظر إلى الميزات الجديدة الرائعة التي نقوم بإضافتها",
"changelog_page_title": "سجل التغييرات",
"chapters": "Chapters",
"checksum": "التحقق من الصحة",
"clear_finished_jobs": "مسح الوظائف المنتهية",
"client": "العميل",
Expand Down Expand Up @@ -125,6 +126,7 @@
"debug_mode_description": "تمكين ميزات التصحيح الإضافية داخل التطبيق.",
"default": "الافتراضي",
"descending": "Descending",
"duration": "Duration",
"random": "عشوائي",
"ipv4_listeners_error": "Error creating the IPv4 listeners. Please check your firewall settings!",
"ipv4_ipv6_listeners_error": "Error creating the IPv4 and IPv6 listeners. Please check your firewall settings!",
Expand Down Expand Up @@ -577,6 +579,7 @@
"square_thumbnails": "مصغرات مربعة",
"star_on_github": "ضع نجمة على GitHub",
"starts_with": "starts with",
"start_time": "Start Time",
"stop": "إيقاف",
"success": "نجاح",
"support": "الدعم",
Expand Down
6 changes: 6 additions & 0 deletions interface/locales/be/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
"changelog": "Што новага",
"changelog_page_description": "Даведайцеся, якія новыя магчымасці мы дадалі",
"changelog_page_title": "Спіс змен",
"chapters": "Chapters",
"checksum": "Кантрольная сума",
"clear_finished_jobs": "Ачысціць скончаныя заданні",
"client": "Кліент",
Expand Down Expand Up @@ -125,6 +126,7 @@
"debug_mode_description": "Уключыце дадатковыя функцыі адладкі ў дадатку.",
"default": "Стандартны",
"descending": "Па змяншэнні",
"duration": "Duration",
"random": "Выпадковы",
"ipv4_listeners_error": "Памылка пры стварэнні слухачоў IPv4. Калі ласка, праверце наладкі брандмаўэра!",
"ipv4_ipv6_listeners_error": "Памылка пры стварэнні слухачоў IPv4 і IPv6. Калі ласка, праверце наладкі брандмаўэра!",
Expand Down Expand Up @@ -335,6 +337,7 @@
"kind_one": "Тып",
"kind_few": "Тыпа",
"kind_many": "Тыпаў",
"kind_other": "Kinds",
"label": "Ярлык",
"labels": "Ярлыкі",
"language": "Мова",
Expand Down Expand Up @@ -363,6 +366,7 @@
"location_one": "Лакацыя",
"location_few": "Лакацыі",
"location_many": "Лакацый",
"location_other": "Locations",
"location_connected_tooltip": "Лакацыя правяраецца на змены",
"location_disconnected_tooltip": "Лакацыя не правяраецца на змены",
"location_display_name_info": "Імя гэтага месцазнаходжання, якое будзе адлюстроўвацца на бакавой панэлі. Гэта дзеянне не пераназаве фактычнай тэчкі на дыску.",
Expand Down Expand Up @@ -569,6 +573,7 @@
"square_thumbnails": "Квадратныя эскізы",
"star_on_github": "Паставіць зорку на GitHub",
"starts_with": "пачынаецца з",
"start_time": "Start Time",
"stop": "Спыніць",
"success": "Поспех",
"support": "Падтрымка",
Expand All @@ -587,6 +592,7 @@
"tag_one": "Тэг",
"tag_few": "Тэга",
"tag_many": "Тэгаў",
"tag_other": "Tags",
"tags": "Тэгі",
"tags_description": "Кіруйце сваімі тэгамі.",
"tags_notice_message": "Гэтаму тэгу не прысвоена ні аднаго элемента.",
Expand Down
3 changes: 3 additions & 0 deletions interface/locales/de/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
"changelog": "Änderungsprotokoll",
"changelog_page_description": "Sehe, welche coolen neuen Funktionen wir machen",
"changelog_page_title": "Änderungsprotokoll",
"chapters": "Chapters",
"checksum": "Prüfsumme",
"clear_finished_jobs": "Beendete Aufgaben entfernen",
"client": "Client",
Expand Down Expand Up @@ -125,6 +126,7 @@
"debug_mode_description": "Zusätzliche Debugging-Funktionen in der App aktivieren.",
"default": "Standard",
"descending": "Absteigend",
"duration": "Duration",
"random": "Zufällig",
"ipv4_listeners_error": "Error creating the IPv4 listeners. Please check your firewall settings!",
"ipv4_ipv6_listeners_error": "Error creating the IPv4 and IPv6 listeners. Please check your firewall settings!",
Expand Down Expand Up @@ -565,6 +567,7 @@
"square_thumbnails": "Quadratische Vorschaubilder",
"star_on_github": "Auf GitHub als Favorit markieren",
"starts_with": "beginnt mit",
"start_time": "Start Time",
"stop": "Stoppen",
"success": "Erfolg",
"support": "Unterstützung",
Expand Down
6 changes: 6 additions & 0 deletions interface/locales/es/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
"changelog": "Registro de cambios",
"changelog_page_description": "Mira qué nuevas funciones geniales estamos creando",
"changelog_page_title": "Registro de cambios",
"chapters": "Chapters",
"checksum": "Suma de verificación",
"clear_finished_jobs": "Eliminar trabajos finalizados",
"client": "Cliente",
Expand Down Expand Up @@ -125,6 +126,7 @@
"debug_mode_description": "Habilitar funciones de depuración adicionales dentro de la aplicación.",
"default": "Predeterminado",
"descending": "Descendente",
"duration": "Duration",
"random": "Aleatorio",
"ipv4_listeners_error": "Error creating the IPv4 listeners. Please check your firewall settings!",
"ipv4_ipv6_listeners_error": "Error creating the IPv4 and IPv6 listeners. Please check your firewall settings!",
Expand Down Expand Up @@ -332,6 +334,7 @@
"kilometers": "Kilómetros",
"kind": "Tipo",
"kind_one": "Tipo",
"kind_many": "Kinds",
"kind_other": "Tipos",
"label": "Etiqueta",
"labels": "Etiquetas",
Expand Down Expand Up @@ -359,6 +362,7 @@
"local_node": "Nodo Local",
"location": "Ubicación",
"location_one": "Ubicación",
"location_many": "Locations",
"location_other": "Ubicaciones",
"location_connected_tooltip": "La ubicación está siendo vigilada en busca de cambios",
"location_disconnected_tooltip": "La ubicación no está siendo vigilada en busca de cambios",
Expand Down Expand Up @@ -566,6 +570,7 @@
"square_thumbnails": "Miniaturas Cuadradas",
"star_on_github": "Dar estrella en GitHub",
"starts_with": "comienza con",
"start_time": "Start Time",
"stop": "Detener",
"success": "Éxito",
"support": "Soporte",
Expand All @@ -582,6 +587,7 @@
"system": "Sistema",
"tag": "Etiqueta",
"tag_one": "Etiqueta",
"tag_many": "Tags",
"tag_other": "Etiquetas",
"tags": "Etiquetas",
"tags_description": "Administra tus etiquetas.",
Expand Down
7 changes: 7 additions & 0 deletions interface/locales/fr/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
"changelog": "Journal des modifications",
"changelog_page_description": "Découvrez les nouvelles fonctionnalités cool que nous développons",
"changelog_page_title": "Changelog",
"chapters": "Chapters",
"checksum": "Somme de contrôle",
"clear_finished_jobs": "Effacer les travaux terminés",
"client": "Client",
Expand Down Expand Up @@ -125,6 +126,7 @@
"debug_mode_description": "Activez des fonctionnalités de débogage supplémentaires dans l'application.",
"default": "Défaut",
"descending": "Descente",
"duration": "Duration",
"random": "Aléatoire",
"ipv4_listeners_error": "Error creating the IPv4 listeners. Please check your firewall settings!",
"ipv4_ipv6_listeners_error": "Error creating the IPv4 and IPv6 listeners. Please check your firewall settings!",
Expand Down Expand Up @@ -332,6 +334,7 @@
"kilometers": "Kilomètres",
"kind": "Type",
"kind_one": "Type",
"kind_many": "Kinds",
"kind_other": "Types",
"label": "Étiquette",
"labels": "Étiquettes",
Expand Down Expand Up @@ -359,6 +362,7 @@
"local_node": "Nœud local",
"location": "Localisation",
"location_one": "Localisation",
"location_many": "Locations",
"location_other": "Localisation",
"location_connected_tooltip": "L'emplacement est surveillé pour les changements",
"location_disconnected_tooltip": "L'emplacement n'est pas surveillé pour les changements",
Expand Down Expand Up @@ -566,6 +570,7 @@
"square_thumbnails": "Vignettes carrées",
"star_on_github": "Mettre une étoile sur GitHub",
"starts_with": "commence par",
"start_time": "Start Time",
"stop": "Arrêter",
"success": "Succès",
"support": "Support",
Expand All @@ -582,7 +587,9 @@
"system": "Système",
"tag": "Étiquette",
"tag_one": "Étiquette",
"tag_many": "Tags",
"tag_other": "Étiquettes",
"tags": "Tags",
"tags_description": "Gérer vos étiquettes.",
"tags_notice_message": "Aucun élément attribué à cette balise.",
"telemetry_description": "Activez pour fournir aux développeurs des données détaillées d'utilisation et de télémesure afin d'améliorer l'application. Désactivez pour n'envoyer que les données de base : votre statut d'activité, la version de l'application, la version du noyau et la plateforme (par exemple, mobile, web ou ordinateur de bureau).",
Expand Down
7 changes: 7 additions & 0 deletions interface/locales/it/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
"changelog": "Changelog",
"changelog_page_description": "Scopri quali nuove fantastiche funzionalità stiamo realizzando",
"changelog_page_title": "Changelog",
"chapters": "Chapters",
"checksum": "Checksum",
"clear_finished_jobs": "Cancella i lavori completati",
"client": "Client",
Expand Down Expand Up @@ -125,6 +126,7 @@
"debug_mode_description": "Abilita funzionalità di debug aggiuntive all'interno dell'app.",
"default": "Predefinito",
"descending": "In discesa",
"duration": "Duration",
"random": "Casuale",
"ipv4_listeners_error": "Error creating the IPv4 listeners. Please check your firewall settings!",
"ipv4_ipv6_listeners_error": "Error creating the IPv4 and IPv6 listeners. Please check your firewall settings!",
Expand Down Expand Up @@ -332,6 +334,7 @@
"kilometers": "Kilometri",
"kind": "Tipo",
"kind_one": "Tipo",
"kind_many": "Kinds",
"kind_other": "Tipi",
"label": "Etichetta",
"labels": "Etichette",
Expand Down Expand Up @@ -359,6 +362,7 @@
"local_node": "Nodo Locale",
"location": "Posizione",
"location_one": "Posizione",
"location_many": "Locations",
"location_other": "Luoghi",
"location_connected_tooltip": "La posizione è monitorata per i cambiamenti",
"location_disconnected_tooltip": "La posizione non è monitorata per i cambiamenti",
Expand Down Expand Up @@ -566,6 +570,7 @@
"square_thumbnails": "Miniature quadrate",
"star_on_github": "Aggiungi ai preferiti su GitHub",
"starts_with": "inizia con",
"start_time": "Start Time",
"stop": "Stop",
"success": "Successo",
"support": "Supporto",
Expand All @@ -582,7 +587,9 @@
"system": "Sistema",
"tag": "Tag",
"tag_one": "Tag",
"tag_many": "Tags",
"tag_other": "Tags",
"tags": "Tags",
"tags_description": "Gestisci i tuoi tags.",
"tags_notice_message": "Nessun elemento assegnato a questo tag.",
"telemetry_description": "Attiva per fornire agli sviluppatori dati dettagliati sull'utilizzo e sulla telemetria per migliorare l'app. Disattiva per inviare solo i dati di base: stato della tua attività, versione dell'app, versione principale e piattaforma (ad esempio mobile, web o desktop).",
Expand Down
3 changes: 3 additions & 0 deletions interface/locales/ja/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
"changelog": "変更履歴",
"changelog_page_description": "Spacedriveの魅力ある新機能をご確認ください。",
"changelog_page_title": "変更履歴",
"chapters": "Chapters",
"checksum": "チェックサム",
"clear_finished_jobs": "完了ジョブを削除",
"client": "クライアント",
Expand Down Expand Up @@ -125,6 +126,7 @@
"debug_mode_description": "アプリ内で追加のデバッグ機能を有効にします。",
"default": "デフォルト",
"descending": "下降",
"duration": "Duration",
"random": "ランダム",
"ipv4_listeners_error": "Error creating the IPv4 listeners. Please check your firewall settings!",
"ipv4_ipv6_listeners_error": "Error creating the IPv4 and IPv6 listeners. Please check your firewall settings!",
Expand Down Expand Up @@ -561,6 +563,7 @@
"square_thumbnails": "正方形のサムネイル",
"star_on_github": "GitHub上のスター",
"starts_with": "で始まる。",
"start_time": "Start Time",
"stop": "中止",
"success": "成功",
"support": "サポート",
Expand Down
3 changes: 3 additions & 0 deletions interface/locales/nl/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
"changelog": "Wijzigingslogboek",
"changelog_page_description": "Zie welke coole nieuwe functies we aan het maken zijn",
"changelog_page_title": "Wijzigingslogboek",
"chapters": "Chapters",
"checksum": "Controlegetal",
"clear_finished_jobs": "Ruim voltooide taken op",
"client": "Client",
Expand Down Expand Up @@ -125,6 +126,7 @@
"debug_mode_description": "Schakel extra debugging functies in de app in.",
"default": "Standaard",
"descending": "Aflopend",
"duration": "Duration",
"random": "Willekeurig",
"ipv4_listeners_error": "Error creating the IPv4 listeners. Please check your firewall settings!",
"ipv4_ipv6_listeners_error": "Error creating the IPv4 and IPv6 listeners. Please check your firewall settings!",
Expand Down Expand Up @@ -565,6 +567,7 @@
"square_thumbnails": "Vierkante Miniaturen",
"star_on_github": "Ster op GitHub",
"starts_with": "begint met",
"start_time": "Start Time",
"stop": "Stop",
"success": "Succes",
"support": "Ondersteuning",
Expand Down
Loading

0 comments on commit 6451a78

Please sign in to comment.