18 lines
530 B
Python
18 lines
530 B
Python
#!/usr/bin/env python3
|
|
# -*- coding: utf-8 -*-
|
|
|
|
from typing import Any, Self, Sequence, Optional
|
|
from abc import ABC, abstractmethod
|
|
|
|
class I18NManagerInterface(ABC):
|
|
|
|
@abstractmethod
|
|
def get(self:Self,
|
|
strings:str|Sequence[str],
|
|
inputs:Optional[dict[str, Any|None]|Sequence[Any|None]] = None,
|
|
languages:Optional[str|Sequence[str]] = None,
|
|
custom_options:int = 0
|
|
) -> Any|None:pass
|
|
|
|
@abstractmethod
|
|
def add(self:Self, inputs:Any|None, custom_options:int = 0) -> None:pass |