import 'dart:async';

import 'package:flutter/material.dart';

import 'package:pshared/provider/locale.dart';

import 'package:pweb/services/posthog.dart';


class PwebLocaleProvider extends LocaleProvider {
  PwebLocaleProvider(super.localeCode);

  @override
  void setLocale(Locale locale) {
    if (this.locale == locale) return;
    super.setLocale(locale);
    unawaited(PosthogService.localeChanged(locale));
  }
}
