Skip to content

Instantly share code, notes, and snippets.

@yann-yinn
Created August 30, 2019 09:26
Show Gist options
  • Save yann-yinn/785f52a33b076cb13c194242d96425cc to your computer and use it in GitHub Desktop.
Save yann-yinn/785f52a33b076cb13c194242d96425cc to your computer and use it in GitHub Desktop.
i18nmodel.json
# TAGS
tags: {
_id: "abc"
name: {
"Fr-fr": "Bonjour",
"En-uk": "Hello"
}
description: {
"Fr-fr": "description",
"En-uk": "description"
}
# POSTS
posts: {
_id: "abc"
language: "fr-fr",
translationId:"abc" // les traductions liés auront toutes le même translationId
title:"hello",
content: "pouet pouet"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment