Skip to content

Commit 2db826f

Browse files
docs: Translate comments to English (#181)
1 parent febc7eb commit 2db826f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/src/posthog_flutter_web_handler.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import 'dart:js_interop';
22

33
import 'package:flutter/services.dart';
44

5-
// Definição da interface JS para o PostHog
5+
// Definition of the JS interface for PostHog
66
@JS()
77
@staticInterop
88
class PostHog {}
@@ -27,11 +27,11 @@ extension PostHogExtension on PostHog {
2727
external JSAny? get_session_id();
2828
}
2929

30-
// Acessar o posthog a partir do window
30+
// Accessing PostHog from the window object
3131
@JS('window.posthog')
3232
external PostHog? get posthog;
3333

34-
// Funções de conversão
34+
// Conversion functions
3535
JSAny stringToJSAny(String value) {
3636
return value.toJS;
3737
}
@@ -44,7 +44,7 @@ JSAny mapToJSAny(Map<dynamic, dynamic> map) {
4444
return map.jsify() ?? JSObject();
4545
}
4646

47-
// Função para converter mapas de forma segura
47+
// Function for safely converting maps
4848
Map<String, dynamic> safeMapConversion(dynamic mapData) {
4949
if (mapData == null) {
5050
return {};

0 commit comments

Comments
 (0)