Skip to content
This repository has been archived by the owner on May 21, 2024. It is now read-only.

Translations: Data type #202

Open
akyoto opened this issue Nov 15, 2018 · 0 comments
Open

Translations: Data type #202

akyoto opened this issue Nov 15, 2018 · 0 comments

Comments

@akyoto
Copy link
Member

akyoto commented Nov 15, 2018

Allow translations for any field in any database object.

type Translations:

field ID string (includes ObjectType, ObjectID, ObjectField separated by a colon)

field English string
field Japanese string
field Spanish string
...

For performance reasons, the number of supported languages is fixed and not dynamic (avoid using map lookups).

API examples:

translations, err := arn.GetTranslations("Anime", anime.ID, "Summary")
translations, err := arn.GetTranslations("User", user.ID, "Introduction")

Add new field tag: translatable:"true" so that the automatic edit form can provide a UI for this.

@akyoto akyoto changed the title Database: Translation datatype Translations: Data type Nov 15, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant