Shima_Max Posted February 18, 2019 Share Posted February 18, 2019 I'm trying to send custom update, but default text field doesn't work. Text replased by standart facebook plug. How can I specify standart text if no localization found? FBInstant.updateAsync({ action: 'CUSTOM', cta: 'Play', image: imgBase64, text: { default: 'DEFAULT text', localizations: { en_US: 'US text', } }, template: 'INVASION', data: {}, strategy: 'IMMEDIATE', notification: 'NO_PUSH', }) .catch(err => console.error(err)); Quote Link to comment Share on other sites More sharing options...
Noel Posted February 19, 2019 Share Posted February 19, 2019 Hi @Shima_Max I believe that is the expected result. If you use "localizations", then all the languages without a localized text will have a standard localized message. I will share your feedback with our product team though. Shima_Max 1 Quote Link to comment Share on other sites More sharing options...
Shima_Max Posted February 19, 2019 Author Share Posted February 19, 2019 @Noel thank you for answer. My task is to display message on English for all users regardless of the location. My solution now is: const locales = ['ak_GH','am_ET','ar_AR','as_IN','ay_BO','az_AZ','be_BY','bg_BG','bn_IN','bp_IN','br_FR','bs_BA','ca_ES','cb_IQ','ck_US','co_FR','cs_CZ','cx_PH','cy_GB','da_DK','de_DE','el_GR','en_GB','en_PI','en_UD','en_US','eo_EO','es_ES','es_LA','es_MX','et_EE','eu_ES','fa_IR','fb_LT','ff_NG','fi_FI','fo_FO','fr_CA','fr_FR','fy_NL','ga_IE','gl_ES','gn_PY','gu_IN','gx_GR','ha_NG','he_IL','hi_IN','hr_HR','ht_HT','hu_HU','hy_AM','id_ID','ig_NG','is_IS','it_IT','ja_JP','ja_KS','jv_ID','ka_GE','kk_KZ','km_KH','kn_IN','ko_KR','ks_IN','ku_TR','ky_KG','la_VA','lg_UG','li_NL','ln_CD','lo_LA','lt_LT','lv_LV','mg_MG','mi_NZ','mk_MK','ml_IN','mn_MN','mr_IN','ms_MY','mt_MT','my_MM','nb_NO','nd_ZW','ne_NP','nl_BE','nl_NL','nn_NO','nr_ZA','ns_ZA','ny_MW','or_IN','pa_IN','pl_PL','ps_AF','pt_BR','pt_PT','qc_GT','qu_PE','qz_MM','rm_CH','ro_RO','ru_RU','rw_RW','sa_IN','sc_IT','se_NO','si_LK','sk_SK','sl_SI','sn_ZW','so_SO','sq_AL','sr_RS','ss_SZ','st_ZA','sv_SE','sw_KE','sy_SY','sz_PL','ta_IN','te_IN','tg_TJ','th_TH','tk_TM','tl_PH','tl_ST','tn_BW','tr_TR','ts_ZA','tt_RU','tz_MA','uk_UA','ur_PK','uz_UZ','ve_ZA','vi_VN','wo_SN','xh_ZA','yi_DE','yo_NG','zh_CN','zh_HK','zh_TW','zu_ZA','zz_TR']; const text = 'My text'; { localizations: locales.reduce((prev, cur) => { prev[cur] = text; return prev; }, {}) } Quote Link to comment Share on other sites More sharing options...
Noel Posted February 19, 2019 Share Posted February 19, 2019 @Shima_Max I believe just removing localizations: { en_US: 'US text', } from your first message should work though. Quote Link to comment Share on other sites More sharing options...
Shima_Max Posted February 19, 2019 Author Share Posted February 19, 2019 All these methods didn't work for me. text: { default: 'my text' } // text: 'my text' // text: { default: 'my text', localizations: {} } Quote Link to comment Share on other sites More sharing options...
Noel Posted February 19, 2019 Share Posted February 19, 2019 @Shima_Max I escalated your feedback to our product team already. Thanks for reporting. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.