You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// - `flutter pub run build_runner build`, if your package depends on Flutter
16
-
// - `pub run build_runner build` otherwise
36
+
/*
37
+
*
38
+
* NStack Config
39
+
*
40
+
*/
41
+
42
+
finalNStack=NStackSdk<Localization>(
43
+
config: _config,
44
+
localization: _nstackLocalization,
45
+
isDebug: kDebugMode,
46
+
);
47
+
48
+
final _nstackLocalization =NStackLocalization<Localization>(
49
+
config: _config,
50
+
translations:constLocalization(),
51
+
availableLanguages: _languages,
52
+
bundledTranslations: _bundledTranslations,
53
+
pickedLanguageLocale:'',
54
+
isDebug: kDebugMode,
55
+
);
56
+
57
+
const _config =NStackConfig(
58
+
projectId:'h6wJremI2TGFM88gbLkdyljWQuwf2hxhxvCH',
59
+
apiKey:'zp2S18H32b67eYAbRQh94tVw76ZzaKKXlHjd',
60
+
);
61
+
62
+
/*
63
+
*
64
+
* Languages & Bundled translations
65
+
*
66
+
*/
67
+
68
+
final _languages = [
69
+
LocalizeIndex(
70
+
id:1216,
71
+
url:null,
72
+
lastUpdatedAt:null,
73
+
shouldUpdate:false,
74
+
language:constLanguage(
75
+
id:56,
76
+
name:'English',
77
+
locale:'en-EN',
78
+
direction:'LRM',
79
+
isDefault:true,
80
+
isBestFit:true,
81
+
),
82
+
),
83
+
LocalizeIndex(
84
+
id:1270,
85
+
url:null,
86
+
lastUpdatedAt:null,
87
+
shouldUpdate:false,
88
+
language:constLanguage(
89
+
id:7,
90
+
name:'German (Austria)',
91
+
locale:'de-AT',
92
+
direction:'LRM',
93
+
isDefault:false,
94
+
isBestFit:false,
95
+
),
96
+
),
97
+
];
98
+
99
+
const _bundledTranslations = {
100
+
'en-EN':
101
+
r'''{"data":{"default":{"title":"NStack SDK Demo","test":"test"},"test":{"testDollarSign":"$testing again new","testSingleQuotationMark":"'testing'","testDoubleQuotationMark":"\"testing\"","testMultipleLines":"testing\nmultiple\nlines\nupdated"}},"meta":{"language":{"id":56,"name":"English","locale":"en-EN","direction":"LRM","is_default":false,"is_best_fit":false},"platform":{"id":515,"slug":"mobile"}}}''',
r'''{"data":{"default":{"title":"NStack SDK Demo","test":"test"},"test":{"testDollarSign":"$testing again new","testSingleQuotationMark":"'testing'","testDoubleQuotationMark":"\"testing\"","testMultipleLines":"testing\nmultiple\nlines\nupdated"}},"meta":{"language":{"id":56,"name":"English","locale":"en-EN","direction":"LRM","is_default":false,"is_best_fit":false},"platform":{"id":515,"slug":"mobile"}}}''',
0 commit comments