import { useLang as useLang_ } from '@rspress/core/runtime';
import { useCallback } from 'react';
import { TRANSLATIONS } from '../translation.js';
export const useLang = () => useLang_();
export const useTranslation = () => {
    const lang = useLang();
    const translations = TRANSLATIONS[lang];
    return useCallback((key) => translations[key], [translations]);
};
