Skip to content

Instantly share code, notes, and snippets.

@IlyaDonskikh
Last active May 18, 2020 07:47
Show Gist options
  • Save IlyaDonskikh/0ed9dbf50749ccc5975994aa287a5c31 to your computer and use it in GitHub Desktop.
Save IlyaDonskikh/0ed9dbf50749ccc5975994aa287a5c31 to your computer and use it in GitHub Desktop.
## Current
NotifictionConfig
properties: {
"ru" => {
"body" => "",
"subject" => ""
},
}
## Sample 1 // Dictionary version.
NotifictionConfig
properties: {
"body" => "",
"subject" => ""
},
properties_locales: {
"en" => {
"body" => "",
"subject" => ""
},
}
## Sample 1.2
NotifictionConfig
properties: {
"body" => "",
"body_locales" => { "en" => "" },
"subject" => ""
}
## Sample 2
NotifictionConfig
subject: { ru: '', en: '' },
body: { template: ... },
body_type: 'template'
NotifictionConfig
subject: { ru: '', en: '' },
body: { ru: '', en: '' },
body_type: 'plain'
## Sample 3
NotifictionConfig
subject: 'text',
subject_locales: { ru: '', en: '' },
body: $path,
body_type: 'template'
NotifictionConfig
subject: 'text',
subject_locales: { ru: '', en: '' },
body: 'text',
body_locales: { ru: '', en: '' },
body_type: 'plain'
## Sample 4 (Won)
NotifictionConfig
subject: 'text',
body: $path,
sample_json_field: { value: 'text' },
body_type: 'template',
locales: {
en: {
subject: 'text',
sample_json_field: { value: 'text' }
}
}
NotifictionConfig
subject: 'text',
body: 'text',
body_type: 'plain',
locales: {
en: {
subject: 'text',
body: 'text'
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment