From 1e030209e8d33f82dce19c6c432484fa936d6f49 Mon Sep 17 00:00:00 2001 From: CommanderRedYT Date: Mon, 25 Dec 2023 15:23:27 +0100 Subject: [PATCH] Separate translations into another repository --- .github/workflows/pull-requests.yml | 2 +- .github/workflows/release.yml | 2 +- .github/workflows/testing.yml | 2 +- .gitmodules | 3 + README.md | 10 ++ src/translations/de.json | 264 ---------------------------- src/translations/en.json | 264 ---------------------------- src/translations/index.ts | 4 +- src/translations/translation-files | 1 + 9 files changed, 19 insertions(+), 533 deletions(-) create mode 100644 .gitmodules delete mode 100644 src/translations/de.json delete mode 100644 src/translations/en.json create mode 160000 src/translations/translation-files diff --git a/.github/workflows/pull-requests.yml b/.github/workflows/pull-requests.yml index e7010f7..c2e7683 100644 --- a/.github/workflows/pull-requests.yml +++ b/.github/workflows/pull-requests.yml @@ -41,7 +41,7 @@ jobs: ${{ runner.os }}-yarn- - name: Install dependencies - run: yarn install --frozen-lockfile + run: yarn install --frozen-lockfile --prefer-offline - name: Cache Gradle Wrapper uses: actions/cache@v3 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6703203..4757767 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -42,7 +42,7 @@ jobs: ${{ runner.os }}-yarn- - name: Install dependencies - run: yarn install --frozen-lockfile + run: yarn install --frozen-lockfile --prefer-offline - name: Cache Gradle Wrapper uses: actions/cache@v3 diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index 73b6715..5453701 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -15,7 +15,7 @@ jobs: - name: Install node modules run: | - yarn install + yarn install --frozen-lockfile --prefer-offline - name: Run Lint run: | diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..7163516 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "src/translations/translation-files"] + path = src/translations/translation-files + url = git@github.com:OpenDTU-App/opendtu-react-native-translations.git diff --git a/README.md b/README.md index e3df50c..212d343 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,16 @@ This is a mobile app for the [OpenDTU project by tbnobody](https://github.com/tbnobody/OpenDTU). I am a OpenDTU user, but I am not affiliated with the original project. However, for API communication, I inspired my code by the original webapp. +## Installation +There are signed .apk files inside the "Releases" tab. As of now, the is no plan to publish to Google Play store or F-Droid. However, if you want to help with F-Droid, feel free to contact me. + +## Development +There are two branches. `main` is the stable branch, `dev` is the development branch. If you want to contribute, please create a pull request to `dev`. + +## Translations +Translations are inside a [submodule](https://github.com/OpenDTU-App/opendtu-react-native-translations) located in `src/translations/translation-files`. +This helps to have a better developer experience when working with Weblate. + ### ToDo - [x] App Icon - [x] Splash Screen diff --git a/src/translations/de.json b/src/translations/de.json deleted file mode 100644 index ed6edd5..0000000 --- a/src/translations/de.json +++ /dev/null @@ -1,264 +0,0 @@ -{ - "livedata": { - "changeTimerangeAndRefreshInterval": "Zeitbereich und Aktualisierungsintervall ändern", - "configureGraphs": "Graphen konfigurieren", - "hintsWarning": "Es gibt einige Probleme mit deiner OpenDTU! Klicke hier, um sie anzuzeigen.", - "todaysYield": "Heutiger Ertrag", - "power": "Leistung" - }, - "deviceSettings": { - "hint": { - "defaultPassword": "Du verwendest das Standardpasswort für die Weboberfläche und den Notfallzugangspunkt. Dies ist potenziell unsicher.", - "timeSync": "Die Uhr wurde noch nicht synchronisiert. Ohne korrekt eingestellte Uhr werden keine Anfragen an den Wechselrichter gestellt. Das ist kurz nach dem Start normal. Nach einer längeren Laufzeit (>1 Minute) wird jedoch angezeigt, dass der NTP-Server nicht erreichbar ist.", - "radioProblem": "Es konnte keine Verbindung zu einem konfigurierten Funkmodul hergestellt werden. Bitte überprüfe die Verkabelung." - }, - "title": "Geräteeinstellungen", - "general": "Allgemein", - "status": "Status: {{status}}", - "serverUrl": "Server-URL: {{url}}", - "deviceName": "Gerätename: {{name}}", - "serialNumber": "Seriennummer: {{serialNumber}}", - "username": "Benutzer: {{username}}", - "hints": "Hinweise", - "details": "Details", - "configureDeviceName": "Gerätename", - "configureServerUrl": "Server-URL", - "configureDatabase": "Datenbank Konfiguration" - }, - "aboutApp": { - "projectHint": "Diese App ist nicht mit dem OpenDTU-Projekt verbunden. Wenn du Fehler findest, melde diesen bitte auf der GitHub-Seite.", - "viewOnGithub": "Auf GitHub ansehen" - }, - "charts": { - "noDatabaseConfiguredDescription": "Um Diagramme anzuzeigen, konfiguriere deine DTU und weise ihr eine Datenbank zu.", - "acPower": "AC Leistung", - "dcVoltage": "DC Spannung", - "acVoltage": "AC Spannung", - "acCurrent": "AC Strom", - "minMaxAvg": "min: {{min}} {{unit}} max: {{max}} {{unit}} avg: {{avg}} {{unit}}", - "noDatabaseConfigured": "Keine Datenbank konfiguriert", - "lastNSeconds": "Letzte {{n}} Sekunden", - "lastNMinutes": "Letzte {{n}} Minuten", - "lastNHours": "Letzte {{n}} Stunden", - "lastNDays": "Letzte {{n}} Tage", - "checkDatabase": "Überprüfe, ob die Datenbank gestartet und erreichbar ist." - }, - "settings": { - "seconds": "Sekunden", - "milliseconds": "Millisekunden", - "languageDescription": "App-Sprache ändern", - "changeTheTheme": "App-Theme ändern?", - "general": "Allgemein", - "theme": "Theme", - "themeDescription": "App-Theme ändern", - "language": "Sprache", - "aboutApp": "Über die App", - "aboutDescription": "Lizenzen • Version • Sonstige Informationen", - "selectDatabase": "Datenbank auswählen", - "changeTheLanguage": "App-Sprache ändern?", - "doYouWantToDeleteThisConfig": "Möchtest du diese Konfiguration löschen?", - "changeTheServerUrl": "Server-URL ändern?", - "serverUrl": "Server-URL", - "manageDatabase": "Datenbank {{name}} verwalten" - }, - "device": { - "deviceName": "Gerätename", - "changeTheDeviceName": "Den Gerätenamen ändern?" - }, - "reset": "Zurücksetzen", - "cancel": "Abbrechen", - "rename": "Umbenennen", - "database": { - "addANewDatabase": "Neue Datenbank hinzufügen", - "name": "Name", - "baseUrl": "URL-Basis", - "username": "Benutzer", - "password": "Passwort" - }, - "add": "Hinzufügen", - "setup": { - "setupComplete": "Einrichtung abgeschlossen! 🎉", - "goToDashboard": "Dashboard öffnen", - "authenticateOpendtuInstance": "OpenDTU-Instanz authentifizieren", - "username": "Benutzer", - "placeholder": { - "username": "admin" - }, - "password": "Passwort", - "login": "Anmelden", - "addOpendtuInstance": "OpenDTU-Instanz hinzufügen", - "opendtuAddress": "OpenDTU-Adresse", - "instancesInYourNetwork": "Instanzen im Netzwerk", - "connect": "Verbinden" - }, - "manageDatabases": { - "noDatabasesConfiguredHint": "Anscheinend hast du noch keine Datenbanken konfiguriert. Klicke auf die Plus-Schaltfläche, um eine hinzuzufügen!", - "addDatabase": "Datenbank hinzufügen", - "databases": "Datenbanken", - "noDatabasesConfigured": "Keine Datenbank konfiguriert" - }, - "mdns": { - "scanning": "Scannen…", - "noDevicesFound": "Keine Geräte gefunden" - }, - "none": "Keine", - "themes": { - "light": "Hell", - "dark": "Dunkel", - "system": "System" - }, - "change": "Ändern", - "languages": { - "english": "English", - "german": "Deutsch" - }, - "delete": "Löschen", - "deviceOfflineWrapper": { - "connecting": "Verbinden…", - "pleaseWait": "Bitte warte, während wir versuchen, eine Verbindung zum Gerät herzustellen.", - "openDeviceList": "Geräteliste öffnen", - "deviceOffline": "Gerät nicht erreichbar", - "checkIfReachable": "Bitte prüfe, ob das Gerät erreichbar ist. Sobald es erreichbar ist, stellen wir die Verbindung automatisch wieder her." - }, - "save": "Speichern", - "deviceList": { - "devices": "Geräte" - }, - "navigation": { - "livedata": "Livedaten", - "settings": "Einstellungen" - }, - "RNPaperDates": { - "save": "Speichern", - "selectSingle": "Wähle Datum", - "selectMultiple": "Wähle Daten", - "selectRange": "Wähle Zeitspanne", - "notAccordingToDateFormat": "Das Format sollte {{inputFormat}} sein", - "mustBeHigherThan": "Muss nach dem {{date}} sein", - "mustBeLowerThan": "Muss vor dem ${date} sein", - "mustBeBetween": "Muss in dieser Zeitspanne liegen {{startDate}} - {{endDate}}", - "dateIsDisabled": "Datum nicht wählbar", - "previous": "Vorheriges", - "next": "Nächstes", - "typeInDate": "Datum eingeben", - "pickDateFromCalendar": "Datum vom Kalender auswählen", - "close": "Schließen" - }, - "time_range": { - "from": "Von {{value}}", - "to": "Bis {{value}}" - }, - "configureGraphs": { - "title": "Graphen konfigurieren", - "save": "Zeitbereich speichern", - "changeTimeRange": "Zeitbereich ändern", - "changeDateRange": "Datumsbereich ändern", - "changeStartTimestamp": "Startzeit ändern", - "changeEndTimestamp": "Endzeit ändern", - "setEndToNow": "Endzeit auf jetzt setzen", - "setLastNSeconds": "Zeitbereich auf letzten N Sekunden setzen", - "changeRefreshInterval": "Aktualisierungsintervall ändern", - "changeRefreshIntervalDescription": "Ändere das Aktualisierungsintervall der Graphen. Dies ist die Zeit zwischen zwei Datenanfragen.", - "presets": "Voreinstellungen" - }, - "opendtu": { - "systemInformationDescription": "Firmware • Hardware • Speicher • Radio", - "systemInformationScreen": { - "firmwareInformation": "Firmware-Informationen", - "hostname": "Hostname", - "sdkVersion": "SDK-Version", - "gitHash": "Git-Hash", - "gitTag": "Git-Tag", - "pioEnvironment": "PIO-Umgebung", - "resetReasonCpu0": "Reset-Grund CPU 0", - "resetReasonCpu1": "Reset-Grund CPU 1", - "configSaveCount": "Anzahl der Konfigurationsspeicherungen", - "uptime": "Betriebszeit", - "chipModel": "Chip-Modell", - "chipRevision": "Chip-Revision", - "chipCores": "Chipkerne", - "chipFrequency": "Chipfrequenz", - "memoryInformation": "Speicherinformationen", - "heap": "Heap", - "littleFs": "LittleFS", - "sketch": "Sketch", - "radioInformation": "Funkmodul-Informationen", - "nrf24Status": "nRF24-Status", - "nrf24ChipStatus": "nRF24-Chipstatus", - "nrf24ChipType": "nRF24-Chiptyp", - "cmt2300aStatus": "CMT2300A-Status", - "cmt2300aChipStatus": "CMT2300A-Chipstatus", - "configVersion": "Konfigurationsversion", - "hardwareInformation": "Hardwareinformationen" - }, - "systemInformation": "Systeminformationen", - "networkInformationScreen": { - "wifiAccessPoint": "WLAN-Zugangspunkt", - "quality": "Qualität", - "wifiStation": "WLAN-Station", - "wifiStationInterface": "WLAN-Stationsinterface", - "wifiAccessPointInterface": "WLAN-Zugangspunkt-Interface", - "status": "Status", - "ssid": "SSID", - "bssid": "BSSID", - "rssi": "Signalstärke", - "numberOfStations": "Anzahl der Stationen", - "hostname": "Hostname", - "ipAddress": "IP-Adresse", - "subnetMask": "Subnetz-Maske", - "gateway": "Gateway", - "dns1": "DNS 1", - "dns2": "DNS 2", - "macAddress": "MAC-Adresse" - }, - "ntpInformationScreen": { - "ntpTimezoneDescription": "NTP-Zeitzonenbeschreibung", - "configurationSummary": "Konfigurationszusammenfassung", - "ntpServer": "NTP-Server", - "ntpTimezone": "NTP-Zeitzone", - "status": "Status", - "currentTime": "Aktuelle Zeit", - "localTime": "Lokale Zeit", - "sunrise": "Sonnenaufgang", - "sunset": "Sonnenuntergang", - "mode": "Modus", - "day": "Tag", - "night": "Nacht" - }, - "mqttInformationScreen": { - "configurationSummary": "Konfigurationszusammenfassung", - "individualPanels": "Einzelne Paneele", - "status": "Status", - "server": "Server", - "username": "Benutzer", - "port": "Port", - "baseTopic": "Basis-Topic", - "publishInterval": "Veröffentlichungsintervall", - "cleansessionFlag": "CleanSession-Flag", - "retain": "Retain", - "tls": "TLS", - "loginWithTlsCertificate": "Mit TLS-Zertifikat anmelden", - "homeAssistantAutoDiscovery": "Home Assistant Auto Discovery", - "expire": "Verfallen", - "runtimeSummary": "Laufzeitzusammenfassung", - "connectionStatus": "Verbindungs-Status" - }, - "title": "OpenDTU", - "networkInformation": "Netzwerkinformationen", - "networkInformationDescription": "WLAN • Ethernet • mDNS", - "mqttInformation": "MQTT-Informationen", - "mqttInformationDescription": "MQTT-Konfiguration • MQTT-Status", - "ntpInformation": "NTP-Informationen", - "ntpInformationDescription": "NTP-Konfiguration • NTP-Status" - }, - "connected": "Verbunden", - "notConnected": "Nicht verbunden", - "configured": "Konfiguriert", - "notConfigured": "Nicht konfiguriert", - "enabled": "Aktiviert", - "disabled": "Deaktiviert", - "unavailable": "Nicht verfügbar", - "synced": "Synchronisiert", - "notSynced": "Nicht synchronisiert", - "n_seconds": "{{n}} Sekunden" -} diff --git a/src/translations/en.json b/src/translations/en.json deleted file mode 100644 index 64eb2a3..0000000 --- a/src/translations/en.json +++ /dev/null @@ -1,264 +0,0 @@ -{ - "configureGraphs": { - "title": "Configure Graphs", - "save": "Save time range", - "changeTimeRange": "Change time range", - "changeDateRange": "Change date range", - "changeStartTimestamp": "Change start timestamp", - "changeEndTimestamp": "Change end timestamp", - "setEndToNow": "Set end to now", - "setLastNSeconds": "Set last N seconds", - "changeRefreshInterval": "Change refresh interval", - "changeRefreshIntervalDescription": "Change the refresh interval of the graphs. This is the time between two data requests.", - "presets": "Presets" - }, - "livedata": { - "configureGraphs": "Configure Graphs", - "changeTimerangeAndRefreshInterval": "Change time-range and refresh interval", - "hintsWarning": "There are some problems with your OpenDTU! Click here to view them.", - "todaysYield": "Today's Yield", - "power": "Power" - }, - "device": { - "deviceName": "Device Name", - "changeTheDeviceName": "Change the Device Name?" - }, - "reset": "Reset", - "cancel": "Cancel", - "rename": "Rename", - "database": { - "addANewDatabase": "Add a new database", - "name": "Name", - "baseUrl": "Base URL", - "username": "Username", - "password": "Password" - }, - "add": "Add", - "aboutApp": { - "projectHint": "This app is not affiliated with the OpenDTU project. If you find any bugs, please report them on the GitHub page.", - "viewOnGithub": "View on GitHub" - }, - "charts": { - "acPower": "AC Power", - "dcVoltage": "DC Voltage", - "acVoltage": "AC Voltage", - "acCurrent": "AC Current", - "minMaxAvg": "min: {{min}} {{unit}} max: {{max}} {{unit}} avg: {{avg}} {{unit}}", - "noDatabaseConfigured": "No database configured", - "noDatabaseConfiguredDescription": "To see charts, configure and assign a database to your DTU.", - "lastNSeconds": "Last {{n}} seconds", - "lastNMinutes": "Last {{n}} minutes", - "lastNHours": "Last {{n}} hours", - "lastNDays": "Last {{n}} days", - "checkDatabase": "Check if the database is running and reachable." - }, - "setup": { - "setupComplete": "Setup complete! 🎉", - "goToDashboard": "Go to dashboard", - "authenticateOpendtuInstance": "Authenticate OpenDTU instance", - "username": "Username", - "placeholder": { - "username": "admin" - }, - "password": "Password", - "login": "Login", - "addOpendtuInstance": "Add OpenDTU Instance", - "opendtuAddress": "OpenDTU Address", - "instancesInYourNetwork": "Instances in your network", - "connect": "Connect" - }, - "settings": { - "seconds": "Seconds", - "milliseconds": "Milliseconds", - "general": "General", - "theme": "Theme", - "themeDescription": "Change the theme of the app", - "language": "Language", - "languageDescription": "Change the language of the app", - "aboutApp": "About the App", - "aboutDescription": "Licenses • Version", - "selectDatabase": "Select Database", - "changeTheTheme": "Change the Theme?", - "changeTheLanguage": "Change the Language?", - "doYouWantToDeleteThisConfig": "Do you want to delete this config?", - "changeTheServerUrl": "Change the Server URL?", - "serverUrl": "Server URL", - "manageDatabase": "Manage database {{name}}" - }, - "mdns": { - "scanning": "Scanning…", - "noDevicesFound": "No devices found" - }, - "none": "None", - "themes": { - "light": "Light", - "dark": "Dark", - "system": "System" - }, - "change": "Change", - "languages": { - "english": "English", - "german": "Deutsch" - }, - "delete": "Delete", - "deviceOfflineWrapper": { - "connecting": "Connecting…", - "pleaseWait": "Please wait while we try to connect to the device.", - "openDeviceList": "Open Device List", - "deviceOffline": "Device Offline", - "checkIfReachable": "Please check that the device is reachable. As soon as it is reachable, we will automatically reconnect." - }, - "save": "Save", - "deviceList": { - "devices": "Devices" - }, - "deviceSettings": { - "title": "Device Settings", - "general": "General", - "status": "Status: {{status}}", - "serverUrl": "Server URL: {{url}}", - "deviceName": "Device Name: {{name}}", - "serialNumber": "Serial Number: {{serialNumber}}", - "username": "Username: {{username}}", - "hints": "Hints", - "hint": { - "defaultPassword": "You are using the default password for the web interface and the emergency access point. This is potentially insecure.", - "timeSync": "The clock has not yet been synchronised. Without a correctly set clock, no requests are made to the inverter. This is normal shortly after the start. However, after a longer runtime (>1 minute), it indicates that the NTP server is not accessible.", - "radioProblem": "Could not connect to a configured radio module. Please check the wiring." - }, - "details": "Details", - "configureDeviceName": "Device name", - "configureServerUrl": "Server URL", - "configureDatabase": "Database Config" - }, - "manageDatabases": { - "databases": "Databases", - "noDatabasesConfigured": "No databases configured", - "noDatabasesConfiguredHint": "It looks like you haven't configured any databases yet. Click the plus button to add one!", - "addDatabase": "Add Database" - }, - "navigation": { - "livedata": "Livedata", - "settings": "Settings" - }, - "RNPaperDates": { - "save": "Save", - "selectSingle": "Select date", - "selectMultiple": "Select dates", - "selectRange": "Select period", - "notAccordingToDateFormat": "Date format must be {{inputFormat}}", - "mustBeHigherThan": "Must be later then {{date}}", - "mustBeLowerThan": "Must be earlier then {{date}}", - "mustBeBetween": "Must be between {{startDate}} - {{endDate}}", - "dateIsDisabled": "Day is not allowed", - "previous": "Previous", - "next": "Next", - "typeInDate": "Type in date", - "pickDateFromCalendar": "Pick date from calendar", - "close": "Close" - }, - "time_range": { - "from": "From {{value}}", - "to": "To {{value}}" - }, - "opendtu": { - "title": "OpenDTU", - "systemInformation": "System Information", - "systemInformationDescription": "Firmware • Hardware • Memory • Radio", - "systemInformationScreen": { - "firmwareInformation": "Firmware Information", - "hostname": "Hostname", - "sdkVersion": "SDK Version", - "configVersion": "Config Version", - "gitHash": "Git Hash", - "gitTag": "Git Tag", - "pioEnvironment": "PIO Environment", - "resetReasonCpu0": "Reset Reason CPU 0", - "resetReasonCpu1": "Reset Reason CPU 1", - "configSaveCount": "Config save count", - "uptime": "Uptime", - "hardwareInformation": "Hardware Information", - "chipModel": "Chip Model", - "chipRevision": "Chip Revision", - "chipCores": "Chip Cores", - "chipFrequency": "Chip Frequency", - "memoryInformation": "Memory Information", - "heap": "Heap", - "littleFs": "LittleFS", - "sketch": "Sketch", - "radioInformation": "Radio Information", - "nrf24Status": "nRF24 Status", - "nrf24ChipStatus": "nRF24 Chip Status", - "nrf24ChipType": "nRF24 Chip Type", - "cmt2300aStatus": "CMT2300A Status", - "cmt2300aChipStatus": "CMT2300A Chip Status" - }, - "networkInformation": "Network Information", - "networkInformationDescription": "WiFi • Ethernet • mDNS", - "networkInformationScreen": { - "wifiStation": "WiFi Station", - "wifiAccessPoint": "WiFi Access Point", - "wifiStationInterface": "WiFi Station Interface", - "wifiAccessPointInterface": "WiFi Access Point Interface", - "status": "Status", - "ssid": "SSID", - "bssid": "BSSID", - "quality": "Quality", - "rssi": "Signal Strength", - "numberOfStations": "Number of Stations", - "hostname": "Hostname", - "ipAddress": "IP Address", - "subnetMask": "Subnet Mask", - "gateway": "Gateway", - "dns1": "DNS 1", - "dns2": "DNS 2", - "macAddress": "MAC Address" - }, - "ntpInformation": "NTP Information", - "ntpInformationDescription": "NTP Configuration • NTP Status", - "ntpInformationScreen": { - "configurationSummary": "Configuration Summary", - "ntpServer": "NTP Server", - "ntpTimezone": "NTP Timezone", - "ntpTimezoneDescription": "NTP Timezone Description", - "status": "Status", - "currentTime": "Current Time", - "localTime": "Local Time", - "sunrise": "Sunrise", - "sunset": "Sunset", - "mode": "Mode", - "day": "Day", - "night": "Night" - }, - "mqttInformation": "MQTT Information", - "mqttInformationDescription": "MQTT Configuration • MQTT Status", - "mqttInformationScreen": { - "configurationSummary": "Configuration Summary", - "status": "Status", - "server": "Server", - "username": "Username", - "port": "Port", - "baseTopic": "Base Topic", - "publishInterval": "Publish Interval", - "cleansessionFlag": "CleanSession Flag", - "retain": "Retain", - "tls": "TLS", - "loginWithTlsCertificate": "Login with TLS Certificate", - "homeAssistantAutoDiscovery": "Home Assistant Auto Discovery", - "expire": "Expire", - "individualPanels": "Individual Panels", - "runtimeSummary": "Runtime Summary", - "connectionStatus": "Connection Status" - } - }, - "connected": "Connected", - "notConnected": "Not connected", - "configured": "Configured", - "notConfigured": "Not configured", - "enabled": "Enabled", - "disabled": "Disabled", - "unavailable": "Unavailable", - "synced": "Synced", - "notSynced": "Not synced", - "n_seconds": "{{n}} seconds" -} diff --git a/src/translations/index.ts b/src/translations/index.ts index de4b270..d3ded41 100644 --- a/src/translations/index.ts +++ b/src/translations/index.ts @@ -3,8 +3,8 @@ import i18n from 'i18next'; import { initReactI18next } from 'react-i18next'; -import de from './de.json'; -import en from './en.json'; +import de from './translation-files/de.json'; +import en from './translation-files/en.json'; if (!i18n.isInitialized) { i18n diff --git a/src/translations/translation-files b/src/translations/translation-files new file mode 160000 index 0000000..679fbcb --- /dev/null +++ b/src/translations/translation-files @@ -0,0 +1 @@ +Subproject commit 679fbcb700ed7f99ffccecf22bbf7b31a1d09157