Add App Translation Strings in Settings (#12170)

* add migration for translation strings

* add to navigation

* WIP

* fix dialog overflow

* update translation keys

* Update logic

* add placeholder to system-language

* fix translation

* remove unused import

* reset dialog on create new

* ensure search input is visible when searching

* merge translation strings on set language

* merge translation strings on update

* hydrate

* make sure null translation do not get merged

* change dialog to drawer

* update placeholder text

* fix form value

* revert dialog style change

* rename drawer component

* Force safe key name

* Move interface to system interfaces

The saved values are Directus app proprietary, so to prevent confusion in what it's supposed to do, we'll move it to system.

* Move composable to root composables

* Use new languages input in interface/display options

* hide translation strings field in project settings

* set system true to system-input-translated-string

* use this in field detail notes

* use in list options

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
This commit is contained in:
Azri Kahar
2022-03-22 21:39:04 +08:00
committed by GitHub
parent e2eb2801c5
commit 37cbaa0be5
37 changed files with 1035 additions and 34 deletions

View File

@@ -60,7 +60,7 @@ export default defineInterface({
type: 'string',
meta: {
width: 'half',
interface: 'input',
interface: 'system-input-translated-string',
options: {
placeholder: '$t:interfaces.boolean.label_placeholder',
},