17 lines
481 B
Python
17 lines
481 B
Python
#!/usr/bin/env python3
|
|
# -*- coding: utf-8 -*-
|
|
|
|
from typing import Any, Optional, Self
|
|
from abc import ABC, abstractmethod
|
|
|
|
class I18NManagerInterface(ABC):
|
|
|
|
@abstractmethod
|
|
def get(self:Self,
|
|
texts:str|list[str]|tuple[str, ...],
|
|
inputs:Optional[dict[str, Any|None]|list[Any|None]|tuple[Any|None, ...]] = None,
|
|
default:str = ""
|
|
) -> str:pass
|
|
|
|
@abstractmethod
|
|
def add(self:Self, inputs:Any|None, overwrite:bool = False) -> None:pass |