@@ -173,7 +173,7 @@ public async void UpdateProjectsList(List<Project> projects)
173
173
} while ( currentBatch . Count == 100 ) ; // Continue if a full batch is returned
174
174
}
175
175
176
- public async void UploadFile ( string path , string projectID , string localeID , string localeCode , bool autoTranslate , string tag )
176
+ public async void UploadFile ( string path , string projectID , string localeID , string localeName , bool autoTranslate , string tag )
177
177
{
178
178
string url = string . Format ( "projects/{0}/uploads" , projectID ) ;
179
179
NameValueCollection nvc = new NameValueCollection
@@ -182,7 +182,7 @@ public async void UploadFile(string path, string projectID, string localeID, str
182
182
{ "file_format" , "csv" } ,
183
183
{ "update_descriptions" , "true" } ,
184
184
{ "update_translations" , "true" } ,
185
- { $ "locale_mapping[{ localeCode } ]", "4" } ,
185
+ { $ "locale_mapping[{ localeName } ]", "4" } ,
186
186
{ "format_options[key_index]" , "1" } ,
187
187
{ "format_options[comment_index]" , "2" } ,
188
188
{ "format_options[max_characters_allowed_column]" , "3" } ,
0 commit comments