Skip to content

Commit 7c85614

Browse files
committed
fix issue jonataslaw#47
1 parent 1601302 commit 7c85614

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

lib/commands/impl/generate/locales/locales.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import 'dart:convert';
22
import 'dart:io';
33

44
import 'package:path/path.dart';
5-
import 'package:recase/recase.dart';
65

76
import '../../../../common/utils/logger/LogUtils.dart';
87
import '../../../../core/internationalization.dart';
@@ -79,7 +78,6 @@ class GenerateLocalesCommand extends Command with ArgsMixin {
7978
parsedLocales.writeln('\tstatic const $key = {');
8079
translationsKeys.writeln('\t\t\'$key\' : Locales.$key,');
8180
value.forEach((key, value) {
82-
key = key.snakeCase;
8381
value = _replaceValue(value);
8482
if (RegExp(r'^[0-9]|[!@#<>?":`~;[\]\\|=+)(*&^%-\s]').hasMatch(key)) {
8583
throw CliException(

lib/core/locales.g.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,10 +230,10 @@ abstract class Locales {
230230
'sucess_clean_pattern_generated': 'Estrutura CLEAN gerada com sucesso.',
231231
'sucess_file_formatted': ' \'%s\' foi formatado com sucesso',
232232
'sucess_package_removed': 'Pacote: %s removido!',
233-
'sucess_package_installed': '\'Pacote: %s instalado!',
233+
'sucess_package_installed': 'Pacote: %s instalado!',
234234
'sucess_update_cli': 'Upgrade concluído',
235235
'sucess_add_controller_in_bindings':
236-
'O %s foi adicionado ao binging no path: %s \'',
236+
'O %s foi adicionado ao binging no path: %s ',
237237
'sucess_navigation_added': '%s navigation adicionada com sucesso.',
238238
'sucess_file_created': 'Arquivo: %s criado com sucesso no path: %s',
239239
'sucess_route_created': 'Rota %s criada com sucesso.',

0 commit comments

Comments
 (0)